Skip to content

Commit 5323eae

Browse files
author
DKravtsov
committed
added Rector config.
1 parent ca49278 commit 5323eae

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

rector.php

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Set\ValueObject\LevelSetList;
7+
use Rector\Symfony\Set\SymfonySetList;
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->paths([
11+
__DIR__ . '/src',
12+
__DIR__ . '/tests',
13+
]);
14+
15+
$rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml');
16+
17+
// define sets of rules
18+
$rectorConfig->sets([
19+
LevelSetList::UP_TO_PHP_81,
20+
SymfonySetList::SYMFONY_60,
21+
SymfonySetList::SYMFONY_CODE_QUALITY,
22+
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
23+
]);
24+
};

0 commit comments

Comments
 (0)