-
Notifications
You must be signed in to change notification settings - Fork 18
/
rector.php
29 lines (26 loc) · 660 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* PHP rector configuration file
*
* @package sunflower
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths(
array(
__DIR__ . '/functions',
__DIR__ . '/inc',
__DIR__ . '/template-parts',
__DIR__ . '/*.php',
)
)
->withPhpSets( php82: true )
->withPreparedSets( codeQuality: true, codingStyle: true, naming: true, earlyReturn: true, privatization: true )
->withAttributesSets( symfony: true, doctrine: true )
->withRules(
array(
AddVoidReturnTypeWhereNoReturnRector::class,
)
);