AntCMS/rector.php

28 lines
707 B
PHP
Raw Normal View History

2023-01-12 08:20:13 +00:00
<?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,
]);
};