Problem
rector.php uses Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_82 which is deprecated in Rector 2.x. The recommended replacement is the ->withPhpSets() fluent method.
Location
Current Code
use Rector\Set\ValueObject\LevelSetList;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withSets([
LevelSetList::UP_TO_PHP_82,
]);
Proposed Fix
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withPhpSets(php82: true);
This removes the deprecated import and uses the fluent API that Rector 2.x recommends.
Priority
🟢 MINOR — deprecated API usage; will break in future Rector versions.
Problem
rector.phpusesRector\Set\ValueObject\LevelSetList::UP_TO_PHP_82which is deprecated in Rector 2.x. The recommended replacement is the->withPhpSets()fluent method.Location
rector.php, line 6Current Code
Proposed Fix
This removes the deprecated import and uses the fluent API that Rector 2.x recommends.
Priority
🟢 MINOR — deprecated API usage; will break in future Rector versions.