Updated Rector to commit 8f993b57a88d299f57461169803ddfdab886a892

8f993b57a8 Update 1_Bug_report.md to use version 1.0.0 (#5592)
This commit is contained in:
Tomas Votruba 2024-02-09 16:49:04 +00:00
parent bbbbb87f7d
commit b9b210cd79
7 changed files with 37 additions and 46 deletions

View File

@ -10,7 +10,7 @@ about: Report errors and problems
| Subject | Details | | Subject | Details |
| :------------- | :---------------------------------------------------------------| | :------------- | :---------------------------------------------------------------|
| Rector version | e.g. v0.19.5 (invoke `vendor/bin/rector --version`) | | Rector version | e.g. v1.0.0 (invoke `vendor/bin/rector --version`) |
<!-- Please describe your problem here. --> <!-- Please describe your problem here. -->

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '88a27f43efbcdf7004b6f7b2a6c6255cc81b6fff'; public const PACKAGE_VERSION = '8f993b57a88d299f57461169803ddfdab886a892';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-02-09 12:59:57'; public const RELEASE_DATE = '2024-02-09 16:46:17';
/** /**
* @var int * @var int
*/ */

View File

@ -1864,12 +1864,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git", "url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "92f8dec13005239b2f05236538ab252a698dc8b2" "reference": "5a62f1739e6feb5463d95ed02063aae860d358e4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/92f8dec13005239b2f05236538ab252a698dc8b2", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/5a62f1739e6feb5463d95ed02063aae860d358e4",
"reference": "92f8dec13005239b2f05236538ab252a698dc8b2", "reference": "5a62f1739e6feb5463d95ed02063aae860d358e4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1878,7 +1878,7 @@
}, },
"require-dev": { "require-dev": {
"phpstan\/extension-installer": "^1.3", "phpstan\/extension-installer": "^1.3",
"phpstan\/phpstan": "^1.10.28", "phpstan\/phpstan": "^1.10.57",
"phpstan\/phpstan-webmozart-assert": "^1.2", "phpstan\/phpstan-webmozart-assert": "^1.2",
"phpunit\/phpunit": "^10.5", "phpunit\/phpunit": "^10.5",
"rector\/rector-generator": "^0.7", "rector\/rector-generator": "^0.7",
@ -1898,7 +1898,7 @@
"tomasvotruba\/class-leak": "^0.2.6", "tomasvotruba\/class-leak": "^0.2.6",
"tracy\/tracy": "^2.10" "tracy\/tracy": "^2.10"
}, },
"time": "2024-01-31T23:46:18+00:00", "time": "2024-02-09T12:04:30+00:00",
"default-branch": true, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {
@ -1920,7 +1920,7 @@
"description": "Rector upgrades rules for Symfony Framework", "description": "Rector upgrades rules for Symfony Framework",
"support": { "support": {
"issues": "https:\/\/github.com\/rectorphp\/rector-symfony\/issues", "issues": "https:\/\/github.com\/rectorphp\/rector-symfony\/issues",
"source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/main" "source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/1.0.0"
}, },
"install-path": "..\/rector\/rector-symfony" "install-path": "..\/rector\/rector-symfony"
}, },

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/ */
final class GeneratedConfig final class GeneratedConfig
{ {
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 9057680'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8d1aab2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main f091938'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 92f8dec')); public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 9057680'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8d1aab2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main f091938'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 5a62f17'));
private function __construct() private function __construct()
{ {
} }

View File

@ -9,7 +9,7 @@
}, },
"require-dev": { "require-dev": {
"phpstan\/extension-installer": "^1.3", "phpstan\/extension-installer": "^1.3",
"phpstan\/phpstan": "^1.10.28", "phpstan\/phpstan": "^1.10.57",
"phpstan\/phpstan-webmozart-assert": "^1.2", "phpstan\/phpstan-webmozart-assert": "^1.2",
"phpunit\/phpunit": "^10.5", "phpunit\/phpunit": "^10.5",
"rector\/rector-generator": "^0.7", "rector\/rector-generator": "^0.7",

View File

@ -6,38 +6,29 @@ namespace RectorPrefix202402;
use Rector\Config\RectorConfig; use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchMethodCallReturnTypeRector; use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchMethodCallReturnTypeRector;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
return static function (RectorConfig $rectorConfig) : void { return RectorConfig::configure()->withImportNames(\true, \true, \true, \true)->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/rules', __DIR__ . '/rules-tests'])->withRootFiles()->withSkip([
$rectorConfig->importNames(); '*/Fixture/*',
$rectorConfig->removeUnusedImports(); '*/Source/*',
$rectorConfig->paths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/rules', __DIR__ . '/rules-tests']); '*/Source*/*',
$rectorConfig->skip([ '*/tests/*/Fixture*/Expected/*',
'*/Fixture/*', StringClassNameToClassConstantRector::class => [__DIR__ . '/config'],
'*/Source/*', RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class => [
'*/Source*/*', // "data" => "datum" false positive
'*/tests/*/Fixture*/Expected/*', __DIR__ . '/src/Rector/ClassMethod/AddRouteAnnotationRector.php',
StringClassNameToClassConstantRector::class => [__DIR__ . '/config'], ],
RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class => [ // marked as skipped
// "data" => "datum" false positive ReturnNeverTypeRector::class => ['*/tests/*'],
__DIR__ . '/src/Rector/ClassMethod/AddRouteAnnotationRector.php', ])->withConfiguredRule(StringClassNameToClassConstantRector::class, [
], 'Error',
// marked as skipped 'Exception',
ReturnNeverTypeRector::class => ['*/tests/*'], 'Symfony\\*',
]); 'Twig_*',
$rectorConfig->ruleWithConfiguration(StringClassNameToClassConstantRector::class, [ 'Twig*',
'Error', 'Swift_*',
'Exception', 'Doctrine\\*',
'Symfony\\*', // loaded from project itself
'Twig_*', 'Psr\\Container\\ContainerInterface',
'Twig*', 'Symfony\\Component\\Routing\\RouterInterface',
'Swift_*', 'Symfony\\Component\\DependencyInjection\\Container',
'Doctrine\\*', ])->withPhpSets()->withPreparedSets(\true, \true, \false, \true, \true, \true);
// loaded from project itself
'Psr\\Container\\ContainerInterface',
'Symfony\\Component\\Routing\\RouterInterface',
'Symfony\\Component\\DependencyInjection\\Container',
]);
$rectorConfig->sets([LevelSetList::UP_TO_PHP_82, \Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100, SetList::CODE_QUALITY, SetList::DEAD_CODE, SetList::TYPE_DECLARATION, SetList::PRIVATIZATION, SetList::NAMING]);
};