Rector standards slowly being applied. PHP Version first.

This commit is contained in:
2024-02-20 14:21:44 +00:00
parent c72112c5aa
commit 660fbd1486
25 changed files with 108 additions and 36 deletions

19
rector.php Normal file
View File

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/benchmark',
__DIR__ . '/examples',
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
->withPhpSets()
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
]);