Skip to content

Commit 9731bda

Browse files
committed
Add initial Rector configuration
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 67c1af7 commit 9731bda

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

rector.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withCache(__DIR__ . '/var/cache/rector')
9+
->withRootFiles()
10+
->withPaths([
11+
__DIR__ . '/bin',
12+
__DIR__ . '/src',
13+
__DIR__ . '/tests',
14+
])
15+
->withImportNames(importShortClasses: false)
16+
->withPhpSets()
17+
->withComposerBased(
18+
twig: true,
19+
doctrine: true,
20+
phpunit: true,
21+
symfony: true,
22+
)
23+
->withAttributesSets(
24+
symfony: true,
25+
doctrine: true,
26+
phpunit: true,
27+
);

0 commit comments

Comments
 (0)