2026-08-12 15:45:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
use Rector\Config\RectorConfig;
|
2026-08-28 17:52:54 +02:00
|
|
|
use Rector\Set\ValueObject\SetList;
|
2026-08-12 15:45:29 +02:00
|
|
|
|
|
|
|
|
return RectorConfig::configure()
|
|
|
|
|
->withPaths([
|
|
|
|
|
__DIR__ . '/src',
|
|
|
|
|
__DIR__ . '/tests',
|
|
|
|
|
])
|
|
|
|
|
->withPhpSets()
|
|
|
|
|
->withSets([
|
2026-08-28 17:52:54 +02:00
|
|
|
SetList::PHP_POLYFILLS,
|
|
|
|
|
SetList::CODE_QUALITY,
|
|
|
|
|
SetList::DEAD_CODE,
|
|
|
|
|
SetList::PRIVATIZATION,
|
|
|
|
|
SetList::TYPE_DECLARATION,
|
|
|
|
|
SetList::EARLY_RETURN,
|
|
|
|
|
SetList::INSTANCEOF,
|
|
|
|
|
SetList::IF,
|
|
|
|
|
]);
|