return RectorConfig::configure()
->withPaths([__DIR__.'/bin', __DIR__.'/config', __DIR__.'/src', __DIR__.'/tests'])
->withPhpSets()
->withComposerBased(doctrine: true, symfony: true, phpunit: true)
->withAttributesSets(doctrine: true, symfony: true, phpunit: true)
->withSkip([
\Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector::class,
\Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector::class,
]);
Goal
Upgrade PHP runtime to 8.5, update Composer dependencies, and apply Rector cleanup.
What needs to be done
composer.jsonPHP constraint to^8.5, runcomposer updaterector/rector: ^2.4, addrector.php:__sleep/__wakeup, removed functions likexml_parser_free())