no-framework-tutorial/implementation/09/rector.php

13 lines
374 B
PHP
Raw Normal View History

2022-05-19 21:39:08 +00:00
<?php declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([__DIR__ . '/src', __DIR__ . '/config', __DIR__ . '/ecs.php', __DIR__ . '/rector.php']);
$rectorConfig->importNames();
$rectorConfig->sets([LevelSetList::UP_TO_PHP_81]);
};