update rector and adapt rules

This commit is contained in:
Julien Fastré 2023-07-28 02:39:46 +02:00
parent c20f65eebb
commit 157cdf6dfc
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,7 @@
"phpunit/phpunit": ">= 7.5", "phpunit/phpunit": ">= 7.5",
"psalm/plugin-phpunit": "^0.18.4", "psalm/plugin-phpunit": "^0.18.4",
"psalm/plugin-symfony": "^4.0.2", "psalm/plugin-symfony": "^4.0.2",
"rector/rector": "^0.15.23", "rector/rector": "^0.17.7",
"symfony/debug-bundle": "^5.1", "symfony/debug-bundle": "^5.1",
"symfony/dotenv": "^4.4", "symfony/dotenv": "^4.4",
"symfony/maker-bundle": "^1.20", "symfony/maker-bundle": "^1.20",

View File

@ -38,7 +38,8 @@ return static function (RectorConfig $rectorConfig): void {
// we need to discuss this: are we going to have FALSE in tests instead of an error ? // we need to discuss this: are we going to have FALSE in tests instead of an error ?
\Rector\Php71\Rector\FuncCall\CountOnNullRector::class, \Rector\Php71\Rector\FuncCall\CountOnNullRector::class,
// must merge MR500 and review a typing of "ArrayCollection" in entities // we must adapt service definition
\Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector::class, \Rector\Symfony\Symfony28\Rector\MethodCall\GetToConstructorInjectionRector::class,
\Rector\Symfony\Symfony34\Rector\Closure\ContainerGetNameToTypeInTestsRector::class,
]); ]);
}; };