Skip to content

Commit b40ddb5

Browse files
committed
chore: remove @noRector
1 parent c53c1e5 commit b40ddb5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

rector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
3030
use Rector\Config\RectorConfig;
3131
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
32+
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
3233
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
3334
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
3435
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
@@ -129,6 +130,11 @@
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

system/Debug/Exceptions.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)