Skip to content

Commit f0700a5

Browse files
authored
[Rector] Enable skipped RemoveUselessReturnTagRector
`RemoveUselessReturnTagRector` already cover `@return true`
1 parent 337de20 commit f0700a5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

rector.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
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;
3332
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
3433
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
3534
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
@@ -116,12 +115,7 @@
116115
// @TODO remove if https://github.com/rectorphp/rector-phpunit/issues/86 is fixed
117116
GetMockBuilderGetMockToCreateMockRector::class => [
118117
__DIR__ . '/tests/system/Email/EmailTest.php',
119-
],
120-
121-
// rector mistakenly removes `@return true`
122-
RemoveUselessReturnTagRector::class => [
123-
__DIR__ . '/system/Debug/Exceptions.php',
124-
],
118+
]
125119
]);
126120

127121
// auto import fully qualified class names

0 commit comments

Comments
 (0)