mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
merge dead-doc-block to dead-code set
This commit is contained in:
parent
5896991385
commit
bcfc808852
@ -48,6 +48,9 @@ use Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector;
|
||||
use Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector;
|
||||
use Rector\DeadCode\Rector\Ternary\TernaryToBooleanOrFalseToBooleanAndRector;
|
||||
use Rector\DeadCode\Rector\TryCatch\RemoveDeadTryCatchRector;
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector;
|
||||
use Rector\PHPUnit\Rector\ClassMethod\RemoveEmptyTestMethodRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
@ -100,4 +103,9 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$services->set(RemoveDeadInstanceOfRector::class);
|
||||
$services->set(RemoveEmptyAbstractClassRector::class);
|
||||
$services->set(RemoveDeadLoopRector::class);
|
||||
|
||||
// docblock
|
||||
$services->set(RemoveUselessParamTagRector::class);
|
||||
$services->set(RemoveUselessReturnTagRector::class);
|
||||
$services->set(RemoveNonExistingVarAnnotationRector::class);
|
||||
};
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$services = $containerConfigurator->services();
|
||||
|
||||
$services->set(RemoveUselessParamTagRector::class);
|
||||
$services->set(RemoveUselessReturnTagRector::class);
|
||||
$services->set(RemoveNonExistingVarAnnotationRector::class);
|
||||
};
|
@ -103,11 +103,6 @@ final class SetList implements SetListInterface
|
||||
*/
|
||||
public const DEAD_CODE_STRICT = __DIR__ . '/../../../config/set/dead-code-strict.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const DEAD_DOC_BLOCK = __DIR__ . '/../../../config/set/dead-doc-block.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user