|
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;
|
|
109 | 110 | __DIR__ . '/system/Session/Handlers',
|
110 | 111 | ],
|
111 | 112 |
|
| 113 | + DeclareStrictTypesRector::class => [ |
| 114 | + __DIR__ . '/app', |
| 115 | + __DIR__ . '/system/CodeIgniter.php', |
| 116 | + __DIR__ . '/system/Config/BaseConfig.php', |
| 117 | + __DIR__ . '/system/Commands/Generators/Views', |
| 118 | + __DIR__ . '/system/Pager/Views', |
| 119 | + __DIR__ . '/system/Test/ControllerTestTrait.php', |
| 120 | + __DIR__ . '/system/Validation/Views', |
| 121 | + __DIR__ . '/system/View/Parser.php', |
| 122 | + __DIR__ . '/tests/system/Debug/ExceptionsTest.php', |
| 123 | + __DIR__ . '/tests/system/View/Views', |
| 124 | + ], |
| 125 | + |
112 | 126 | // use mt_rand instead of random_int on purpose on non-cryptographically random
|
113 | 127 | RandomFunctionRector::class,
|
114 | 128 |
|
|
119 | 133 | $rectorConfig->importNames();
|
120 | 134 | $rectorConfig->removeUnusedImports();
|
121 | 135 |
|
| 136 | + $rectorConfig->rule(DeclareStrictTypesRector::class); |
122 | 137 | $rectorConfig->rule(UnderscoreToCamelCaseVariableNameRector::class);
|
123 | 138 | $rectorConfig->rule(SimplifyUselessVariableRector::class);
|
124 | 139 | $rectorConfig->rule(RemoveAlwaysElseRector::class);
|
|
0 commit comments