Skip to content

Commit

Permalink
chore: upgrade rector configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Feb 23, 2024
1 parent 0d60ea3 commit 55dc1dc
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,10 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\LevelSetList;
use Rector\ValueObject\PhpVersion;

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

$rectorConfig
->phpVersion(
PhpVersion::PHP_80
)
;

$rectorConfig
->sets(
[
LevelSetList::UP_TO_PHP_80,
]
)
;
};
return RectorConfig::configure()
->withPhpVersion(PhpVersion::PHP_80)
->withPhpSets(php80: true)
->withPaths([__DIR__.'/src'])
;

0 comments on commit 55dc1dc

Please sign in to comment.