|
45 | 45 | use Rector\Set\ValueObject\LevelSetList; |
46 | 46 | use Rector\Set\ValueObject\SetList; |
47 | 47 | use Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector; |
| 48 | +use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; |
48 | 49 | use Utils\Rector\PassStrictParameterToFunctionParameterRector; |
49 | 50 | use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector; |
50 | 51 | use Utils\Rector\RemoveVarTagFromClassConstantRector; |
|
108 | 109 | __DIR__ . '/system/Session/Handlers', |
109 | 110 | ], |
110 | 111 |
|
| 112 | + DeclareStrictTypesRector::class => [ |
| 113 | + __DIR__ . '/app', |
| 114 | + __DIR__ . '/system/CodeIgniter.php', |
| 115 | + __DIR__ . '/system/Config/BaseConfig.php', |
| 116 | + __DIR__ . '/system/Commands/Generators/Views', |
| 117 | + __DIR__ . '/system/Pager/Views', |
| 118 | + __DIR__ . '/system/Test/ControllerTestTrait.php', |
| 119 | + __DIR__ . '/system/Validation/Views', |
| 120 | + __DIR__ . '/system/View/Parser.php', |
| 121 | + __DIR__ . '/tests/system/Debug/ExceptionsTest.php', |
| 122 | + __DIR__ . '/tests/system/View/Views', |
| 123 | + ], |
| 124 | + |
111 | 125 | // use mt_rand instead of random_int on purpose on non-cryptographically random |
112 | 126 | RandomFunctionRector::class, |
113 | 127 |
|
|
118 | 132 | $rectorConfig->importNames(); |
119 | 133 | $rectorConfig->removeUnusedImports(); |
120 | 134 |
|
| 135 | + $rectorConfig->rule(DeclareStrictTypesRector::class); |
121 | 136 | $rectorConfig->rule(UnderscoreToCamelCaseVariableNameRector::class); |
122 | 137 | $rectorConfig->rule(SimplifyUselessVariableRector::class); |
123 | 138 | $rectorConfig->rule(RemoveAlwaysElseRector::class); |
|
0 commit comments