File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
3030use Rector \Config \RectorConfig ;
3131use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPrivateMethodRector ;
32+ use Rector \DeadCode \Rector \ClassMethod \RemoveUselessReturnTagRector ;
3233use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
3334use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
3435use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
129130
130131 // buggy on union mixed type, new class extends SomeClass marked as object in union, and false replaced with bool in Union
131132 TypedPropertyFromAssignsRector::class,
133+
134+ // rector mistakenly removes `@return true`
135+ RemoveUselessReturnTagRector::class => [
136+ __DIR__ . '/system/Debug/Exceptions.php ' ,
137+ ],
132138 ]);
133139
134140 // auto import fully qualified class names
Original file line number Diff line number Diff line change @@ -379,8 +379,6 @@ private function isDeprecationError(int $error): bool
379379 }
380380
381381 /**
382- * @noRector \Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector
383- *
384382 * @return true
385383 */
386384 private function handleDeprecationError (string $ message , ?string $ file = null , ?int $ line = null ): bool
You can’t perform that action at this time.
0 commit comments