Skip to content

Commit 8b21f96

Browse files
committed
Add rector config
1 parent ef9348e commit 8b21f96

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

rector.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
6+
use Rector\Config\RectorConfig;
7+
use Rector\PHPUnit\Set\PHPUnitSetList;
8+
use Rector\Set\ValueObject\LevelSetList;
9+
10+
return static function (RectorConfig $rectorConfig): void {
11+
$rectorConfig->paths([
12+
__DIR__ . '/test',
13+
__DIR__ . '/src',
14+
]);
15+
16+
17+
// define sets of rules
18+
$rectorConfig->sets([LevelSetList::UP_TO_PHP_81, PHPUnitSetList::PHPUNIT_100,]);
19+
};

0 commit comments

Comments
 (0)