mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
Updated Rector to commit 98f61597c8d6d0568ae3e5ee00ea826cc2e47aa2
98f61597c8
Remove unneeded bin/add-phpstan-self-replace.php and bin/test-fixture-stats.php on target remote-repository on build (#6244)
This commit is contained in:
parent
85a76abf27
commit
68889ac8de
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
// this is part of downgrade build
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202408;
|
||||
|
||||
use RectorPrefix202408\PackageVersions\Versions;
|
||||
use RectorPrefix202408\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202408\Nette\Utils\Json;
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
$composerJsonFileContents = FileSystem::read(__DIR__ . '/../composer.json');
|
||||
$composerJson = Json::decode($composerJsonFileContents, \true);
|
||||
// result output is like: // 1.0.0@0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
|
||||
[$phpstanVersion] = \explode('@', Versions::getVersion('phpstan/phpstan'));
|
||||
$composerJson['replace']['phpstan/phpstan'] = $phpstanVersion;
|
||||
$modifiedComposerJsonFileContents = Json::encode($composerJson, \true);
|
||||
FileSystem::write(__DIR__ . '/../composer.json', $modifiedComposerJsonFileContents, null);
|
||||
echo 'Done!' . \PHP_EOL;
|
@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
// this is part of downgrade build
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202408;
|
||||
|
||||
use RectorPrefix202408\Symfony\Component\Finder\Finder;
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
$finder = Finder::create()->in(__DIR__ . '/../rules-tests')->directories()->name('#Rector$#')->getIterator();
|
||||
$ruleToFixtureCount = [];
|
||||
foreach ($finder as $rectorTestDirectory) {
|
||||
if ($rectorTestDirectory->getBasename() === 'Rector') {
|
||||
continue;
|
||||
}
|
||||
$fixtureCount = Finder::create()->files()->name('*.php.inc')->in($rectorTestDirectory->getPathname())->count();
|
||||
// very few fixture files, not relevant
|
||||
if ($fixtureCount <= 15) {
|
||||
continue;
|
||||
}
|
||||
$ruleToFixtureCount[$rectorTestDirectory->getBasename()] = $fixtureCount;
|
||||
}
|
||||
\asort($ruleToFixtureCount);
|
||||
foreach ($ruleToFixtureCount as $rule => $fixtureCount) {
|
||||
echo ' * ' . $rule . ': ';
|
||||
echo $fixtureCount . \PHP_EOL;
|
||||
}
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '06b658ce8925934d244af225e72eff75ca1b6d23';
|
||||
public const PACKAGE_VERSION = '98f61597c8d6d0568ae3e5ee00ea826cc2e47aa2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-08-20 21:20:55';
|
||||
public const RELEASE_DATE = '2024-08-20 14:30:28';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user