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 |
| :------------- | :---------------------------------------------------------------|
| 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. -->

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
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()
{
}

View File

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

View File

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