Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Jun 17, 2024
1 parent fbd97ea commit eac110e
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,25 @@
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);

$rectorConfig->autoloadPaths([
])
->withAutoloadPaths([
__DIR__ . '/vendor/autoload.php',
__DIR__ . '/vendor-bin/rector/vendor/autoload.php',
]);

$rectorConfig->importNames();

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
])
->withImportNames(removeUnusedImports: true)
->withPhpSets(php82: true)
->withSets([
PHPUnitSetList::PHPUNIT_100,
]);

$rectorConfig->skip([
])
->withSkip([
\Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
\Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector::class,
\Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class => [
__DIR__.'/src/Configuration/Configuration.php',
],
\Rector\Php73\Rector\String_\SensitiveHereNowDocRector::class,
]);
};

0 comments on commit eac110e

Please sign in to comment.