27 lines
No EOL
598 B
PHP
27 lines
No EOL
598 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/public',
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/config',
|
|
__DIR__ . '/tests',
|
|
__DIR__ . '/bin',
|
|
])
|
|
->withImportNames(removeUnusedImports: true)
|
|
->withPhpSets()
|
|
->withPreparedSets(
|
|
codeQuality: true,
|
|
typeDeclarations: true,
|
|
earlyReturn: true,
|
|
strictBooleans: true,
|
|
)
|
|
->withSkip([
|
|
ReadonlyPropertyRector::class,
|
|
])
|
|
; |