mirror of
https://github.com/yiisoft/app.git
synced 2026-02-19 17:11:21 +01:00
23 lines
598 B
PHP
23 lines
598 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
|
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
])
|
|
->withPhpSets(php82: true)
|
|
->withRules([
|
|
InlineConstructorDefaultToPropertyRector::class,
|
|
])
|
|
->withSkip([
|
|
ClosureToArrowFunctionRector::class,
|
|
ReadOnlyPropertyRector::class,
|
|
]);
|