27 lines
707 B
PHP
27 lines
707 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
|
|
use Rector\Php80\Rector\FunctionLike\UnionTypesRector;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Set\ValueObject\SetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
]);
|
|
$rectorConfig->skip([
|
|
__DIR__ . '/src/Vendor',
|
|
__DIR__ . '/src/Cache',
|
|
UnionTypesRector::class,
|
|
MixedTypeRector::class,
|
|
]);
|
|
|
|
$rectorConfig->sets([
|
|
SetList::PHP_80,
|
|
]);
|
|
};
|