|
22 | 22 | use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; |
23 | 23 | use Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector; |
24 | 24 | use Rector\Config\RectorConfig; |
25 | | -use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector; |
26 | 25 | use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector; |
27 | | -use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector; |
28 | 26 | use Rector\DeadCode\Rector\MethodCall\RemoveNullArgOnNullDefaultParamRector; |
29 | 27 | use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; |
30 | 28 | use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; |
|
99 | 97 | __DIR__ . '/tests/_support/Test/TestForReflectionHelper.php', |
100 | 98 | ], |
101 | 99 |
|
102 | | - RemoveUnusedConstructorParamRector::class => [ |
103 | | - // there are deprecated parameters |
104 | | - __DIR__ . '/system/Debug/Exceptions.php', |
105 | | - // @TODO remove if deprecated $httpVerb is removed |
106 | | - __DIR__ . '/system/Router/AutoRouterImproved.php', |
107 | | - // @TODO remove if deprecated $config is removed |
108 | | - __DIR__ . '/system/HTTP/Request.php', |
109 | | - __DIR__ . '/system/HTTP/Response.php', |
110 | | - ], |
111 | | - |
112 | 100 | // Exclude test file because `is_cli()` is mocked and Rector might remove needed parameters. |
113 | 101 | RemoveExtraParametersRector::class => [ |
114 | 102 | __DIR__ . '/tests/system/Debug/ToolbarTest.php', |
115 | 103 | ], |
116 | 104 |
|
117 | | - // check on constant compare |
118 | | - UnwrapFutureCompatibleIfPhpVersionRector::class => [ |
119 | | - __DIR__ . '/system/Autoloader/Autoloader.php', |
120 | | - ], |
121 | | - |
122 | 105 | UnderscoreToCamelCaseVariableNameRector::class => [ |
123 | 106 | // session handlers have the gc() method with underscored parameter `$max_lifetime` |
124 | 107 | __DIR__ . '/system/Session/Handlers', |
|
137 | 120 | __DIR__ . '/tests/system/Debug/ExceptionsTest.php', |
138 | 121 | ], |
139 | 122 |
|
| 123 | + DeclareStrictTypesTestsRector::class => [ |
| 124 | + __DIR__ . '/tests/system/Debug/ExceptionsTest.php', |
| 125 | + ], |
| 126 | + |
140 | 127 | // use mt_rand instead of random_int on purpose on non-cryptographically random |
141 | 128 | RandomFunctionRector::class, |
142 | 129 |
|
|
153 | 140 | ], |
154 | 141 |
|
155 | 142 | ReturnNeverTypeRector::class => [ |
156 | | - __DIR__ . '/system/Cache/Handlers/BaseHandler.php', |
157 | | - __DIR__ . '/system/Cache/Handlers/MemcachedHandler.php', |
158 | | - __DIR__ . '/system/Cache/Handlers/WincacheHandler.php', |
159 | | - __DIR__ . '/system/CodeIgniter.php', |
160 | 143 | __DIR__ . '/system/Database/MySQLi/Utils.php', |
161 | 144 | __DIR__ . '/system/Database/OCI8/Utils.php', |
162 | 145 | __DIR__ . '/system/Database/Postgre/Utils.php', |
163 | 146 | __DIR__ . '/system/Database/SQLSRV/Utils.php', |
164 | 147 | __DIR__ . '/system/Database/SQLite3/Utils.php', |
165 | 148 | __DIR__ . '/system/HTTP/DownloadResponse.php', |
166 | 149 | __DIR__ . '/system/HTTP/SiteURI.php', |
167 | | - __DIR__ . '/system/Helpers/kint_helper.php', |
168 | | - __DIR__ . '/tests/_support/Autoloader/FatalLocator.php', |
169 | 150 | ], |
170 | 151 |
|
171 | 152 | // Unnecessary (string) is inserted |
|
184 | 165 | // some tests extended by other tests |
185 | 166 | FinalizeTestCaseClassRector::class, |
186 | 167 |
|
187 | | - DeclareStrictTypesTestsRector::class => [ |
188 | | - __DIR__ . '/tests/system/Debug/ExceptionsTest.php', |
189 | | - ], |
190 | | - |
191 | 168 | RemoveNullArgOnNullDefaultParamRector::class => [ |
192 | 169 | // skip form query usage, easier to read |
193 | 170 | __DIR__ . '/system/Model.php', |
|
0 commit comments