mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Merge DeadDocBlock to DeadCode (#5936)
This commit is contained in:
parent
747104df6b
commit
89a7afb5a4
@ -18,6 +18,8 @@ use Rector\DeadCode\Rector\ClassMethod\RemoveDelegatingParentCallRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Rector\DeadCode\Rector\Concat\RemoveConcatAutocastRector;
|
||||
use Rector\DeadCode\Rector\Expression\RemoveDeadStmtRector;
|
||||
use Rector\DeadCode\Rector\Expression\SimplifyMirrorAssignRector;
|
||||
@ -36,6 +38,7 @@ use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfFunctionExistsRector;
|
||||
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
|
||||
use Rector\DeadCode\Rector\MethodCall\RemoveDefaultArgumentValueRector;
|
||||
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
|
||||
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
|
||||
use Rector\DeadCode\Rector\Property\RemoveSetterOnlyPropertyAndMethodCallRector;
|
||||
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
|
||||
use Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector;
|
||||
@ -45,9 +48,6 @@ 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;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Rector\DeadCode\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Rector\Doctrine\Rector\Class_\RemoveRepositoryFromEntityAnnotationRector;
|
||||
use Rector\Doctrine\Rector\ClassMethod\ServiceEntityRepositoryParentCallToDIRector;
|
||||
use Rector\Doctrine\Rector\MethodCall\ReplaceParentRepositoryCallsByRepositoryPropertyRector;
|
||||
|
@ -4041,10 +4041,10 @@ Remove annotation by names
|
||||
|
||||
:wrench: **configure it!**
|
||||
|
||||
- class: [`Rector\DeadDocBlock\Rector\ClassLike\RemoveAnnotationRector`](../rules/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector.php)
|
||||
- class: [`Rector\DeadCode\Rector\ClassLike\RemoveAnnotationRector`](../rules/DeadDocBlock/Rector/ClassLike/RemoveAnnotationRector.php)
|
||||
|
||||
```php
|
||||
use Rector\DeadDocBlock\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Rector\DeadCode\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
@ -4074,7 +4074,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
||||
Removes non-existing `@var` annotations above the code
|
||||
|
||||
- class: [`Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector`](../rules/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector.php)
|
||||
- class: [`Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector`](../rules/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
@ -4093,7 +4093,7 @@ Removes non-existing `@var` annotations above the code
|
||||
|
||||
Remove `@param` docblock with same type as parameter type
|
||||
|
||||
- class: [`Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector`](../rules/DeadDocBlock/Rector/ClassMethod/RemoveUselessParamTagRector.php)
|
||||
- class: [`Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector`](../rules/DeadDocBlock/Rector/ClassMethod/RemoveUselessParamTagRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
@ -4114,7 +4114,7 @@ Remove `@param` docblock with same type as parameter type
|
||||
|
||||
Remove `@return` docblock with same type as defined in PHP
|
||||
|
||||
- class: [`Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector`](../rules/DeadDocBlock/Rector/ClassMethod/RemoveUselessReturnTagRector.php)
|
||||
- class: [`Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector`](../rules/DeadDocBlock/Rector/ClassMethod/RemoveUselessReturnTagRector.php)
|
||||
|
||||
```diff
|
||||
use stdClass;
|
||||
@ -4136,7 +4136,7 @@ Remove `@return` docblock with same type as defined in PHP
|
||||
|
||||
Remove unused `@var` annotation for properties
|
||||
|
||||
- class: [`Rector\DeadDocBlock\Rector\Property\RemoveUselessVarTagRector`](../rules/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector.php)
|
||||
- class: [`Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector`](../rules/DeadDocBlock/Rector/Property/RemoveUselessVarTagRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
|
@ -21,10 +21,10 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Doctrine\Property_\Generate
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Doctrine\Property_\JoinTableTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Gedmo\BlameableTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Gedmo\SlugTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Sensio\SensioMethodTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Sensio\SensioTemplateTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\AssertChoiceTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\AssertTypeTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\Sensio\SensioMethodTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\Sensio\SensioTemplateTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\SymfonyRouteTagValueNode;
|
||||
|
||||
final class TagValueToPhpParserNodeMap
|
||||
@ -36,9 +36,11 @@ final class TagValueToPhpParserNodeMap
|
||||
SymfonyRouteTagValueNode::class => ClassMethod::class,
|
||||
SlugTagValueNode::class => Property::class,
|
||||
BlameableTagValueNode::class => Property::class,
|
||||
|
||||
// symfony/validation
|
||||
AssertChoiceTagValueNode::class => Property::class,
|
||||
AssertTypeTagValueNode::class => Property::class,
|
||||
|
||||
// doctrine
|
||||
ColumnTagValueNode::class => Property::class,
|
||||
JoinTableTagValueNode::class => Property::class,
|
||||
@ -47,6 +49,7 @@ final class TagValueToPhpParserNodeMap
|
||||
CustomIdGeneratorTagValueNode::class => Property::class,
|
||||
GeneratedValueTagValueNode::class => Property::class,
|
||||
EmbeddedTagValueNode::class => Property::class,
|
||||
|
||||
// special case for constants
|
||||
GenericTagValueNode::class => Property::class,
|
||||
SensioTemplateTagValueNode::class => Class_::class,
|
||||
|
@ -18,10 +18,10 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Doctrine\Property_\Generate
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Doctrine\Property_\JoinTableTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Gedmo\BlameableTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Gedmo\SlugTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Sensio\SensioMethodTagValueNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocNode\Sensio\SensioTemplateTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\AssertChoiceTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\AssertTypeTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\Sensio\SensioMethodTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\Sensio\SensioTemplateTagValueNode;
|
||||
use Rector\Symfony\PhpDoc\Node\SymfonyRouteTagValueNode;
|
||||
use Rector\Tests\BetterPhpDocParser\PhpDocParser\AbstractPhpDocInfoTest;
|
||||
use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
@ -60,9 +60,12 @@ final class TagValueNodeReprintTest extends AbstractPhpDocInfoTest
|
||||
return [
|
||||
BlameableTagValueNode::class => __DIR__ . '/Fixture/Blameable',
|
||||
SlugTagValueNode::class => __DIR__ . '/Fixture/Gedmo',
|
||||
|
||||
// symfony
|
||||
AssertChoiceTagValueNode::class => __DIR__ . '/Fixture/AssertChoice',
|
||||
AssertTypeTagValueNode::class => __DIR__ . '/Fixture/AssertType',
|
||||
SymfonyRouteTagValueNode::class => __DIR__ . '/Fixture/SymfonyRoute',
|
||||
|
||||
// Doctrine
|
||||
ColumnTagValueNode::class => __DIR__ . '/Fixture/DoctrineColumn',
|
||||
JoinTableTagValueNode::class => __DIR__ . '/Fixture/DoctrineJoinTable',
|
||||
@ -71,10 +74,12 @@ final class TagValueNodeReprintTest extends AbstractPhpDocInfoTest
|
||||
CustomIdGeneratorTagValueNode::class => __DIR__ . '/Fixture/DoctrineCustomIdGenerator',
|
||||
GeneratedValueTagValueNode::class => __DIR__ . '/Fixture/DoctrineGeneratedValue',
|
||||
EmbeddedTagValueNode::class => __DIR__ . '/Fixture/DoctrineEmbedded',
|
||||
|
||||
// special case
|
||||
GenericTagValueNode::class => __DIR__ . '/Fixture/ConstantReference',
|
||||
SensioTemplateTagValueNode::class => __DIR__ . '/Fixture/SensioTemplate',
|
||||
SensioMethodTagValueNode::class => __DIR__ . '/Fixture/SensioMethod',
|
||||
|
||||
GenericTagValueNode::class => __DIR__ . '/Fixture/ConstantReference',
|
||||
TemplateTagValueNode::class => __DIR__ . '/Fixture/Native/Template',
|
||||
VarTagValueNode::class => __DIR__ . '/Fixture/Native/VarTag',
|
||||
];
|
||||
|
@ -196,7 +196,7 @@ parameters:
|
||||
- rules/CodingStyle/Rector/Assign/PHPStormVarAnnotationRector.php
|
||||
- rules/CodeQuality/Rector/Return_/SimplifyUselessVariableRector.php
|
||||
- rules/DeadCode/Rector/Expression/RemoveDeadStmtRector.php
|
||||
- rules/DeadDocBlock/Rector/Node/RemoveNonExistingVarAnnotationRector.php
|
||||
- rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php
|
||||
- rules/PhpSpecToPHPUnit/Rector/MethodCall/PhpSpecMocksToPHPUnitMocksRector.php
|
||||
- rules/CodingStyle/Node/DocAliasResolver.php
|
||||
- packages/BetterPhpDocParser/Comment/CommentsMerger.php
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Rector\DeadDocBlock\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Rector\DeadCode\Rector\ClassLike\RemoveAnnotationRector;
|
||||
use Rector\Symfony\PhpDoc\Node\JMS\JMSInjectParamsTagValueNode;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\Node\RemoveNonExistingVarAnnotationRector;
|
||||
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\DeadDocBlock\Rector\Property\RemoveUselessVarTagRector;
|
||||
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
@ -23,7 +23,6 @@ use Rector\Core\ValueObject\MethodName;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @see https://github.com/thecodingmachine/phpstan-strict-rules/blob/e3d746a61d38993ca2bc2e2fcda7012150de120c/src/Rules/Exceptions/ThrowMustBundlePreviousExceptionRule.php#L83
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock;
|
||||
namespace Rector\DeadCode\PhpDoc;
|
||||
|
||||
use PhpParser\Node\FunctionLike;
|
||||
use PhpParser\Node\Param;
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock;
|
||||
namespace Rector\DeadCode\PhpDoc;
|
||||
|
||||
use PhpParser\Node\FunctionLike;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ReturnTagValueNode;
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock;
|
||||
namespace Rector\DeadCode\PhpDoc;
|
||||
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode;
|
@ -2,13 +2,13 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\TagRemover;
|
||||
namespace Rector\DeadCode\PhpDoc\TagRemover;
|
||||
|
||||
use PhpParser\Node\FunctionLike;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTagRemover;
|
||||
use Rector\DeadDocBlock\DeadParamTagValueNodeAnalyzer;
|
||||
use Rector\DeadCode\PhpDoc\DeadParamTagValueNodeAnalyzer;
|
||||
|
||||
final class ParamTagRemover
|
||||
{
|
@ -2,13 +2,13 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\TagRemover;
|
||||
namespace Rector\DeadCode\PhpDoc\TagRemover;
|
||||
|
||||
use PhpParser\Node\FunctionLike;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ReturnTagValueNode;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\DeadDocBlock\DeadReturnTagValueNodeAnalyzer;
|
||||
use Rector\DeadCode\PhpDoc\DeadReturnTagValueNodeAnalyzer;
|
||||
|
||||
final class ReturnTagRemover
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\TagRemover;
|
||||
namespace Rector\DeadCode\PhpDoc\TagRemover;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Param;
|
||||
@ -17,7 +17,7 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
|
||||
use Rector\DeadDocBlock\DeadVarTagValueNodeAnalyzer;
|
||||
use Rector\DeadCode\PhpDoc\DeadVarTagValueNodeAnalyzer;
|
||||
use Rector\PHPStanStaticTypeMapper\DoctrineTypeAnalyzer;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use Symplify\PackageBuilder\Reflection\ClassLikeExistenceChecker;
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\Rector\ClassLike;
|
||||
namespace Rector\DeadCode\Rector\ClassLike;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\FunctionLike;
|
@ -2,13 +2,13 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\Rector\ClassMethod;
|
||||
namespace Rector\DeadCode\Rector\ClassMethod;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTagRemover;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\DeadParamTagValueNodeAnalyzer;
|
||||
use Rector\DeadCode\PhpDoc\DeadParamTagValueNodeAnalyzer;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\Rector\ClassMethod;
|
||||
namespace Rector\DeadCode\Rector\ClassMethod;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\ReturnTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ReturnTagRemover;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\Rector\Node;
|
||||
namespace Rector\DeadCode\Rector\Node;
|
||||
|
||||
use PhpParser\Comment;
|
||||
use PhpParser\Node;
|
@ -2,12 +2,12 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Rector\DeadDocBlock\Rector\Property;
|
||||
namespace Rector\DeadCode\Rector\Property;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\VarTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\VarTagRemover;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
@ -16,7 +16,7 @@ use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\ReturnTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ReturnTagRemover;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
|
@ -17,7 +17,7 @@ use PHPStan\Type\UnionType;
|
||||
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\DeadDocBlock\TagRemover\VarTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\VarTagRemover;
|
||||
use Rector\PHPStanStaticTypeMapper\DoctrineTypeAnalyzer;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
||||
use Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer;
|
||||
|
@ -13,7 +13,7 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTagRemover;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
use Rector\DeadDocBlock\TagRemover\VarTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\VarTagRemover;
|
||||
use Rector\Naming\VariableRenamer;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\Php80\NodeResolver\PromotedPropertyResolver;
|
||||
|
@ -14,8 +14,8 @@ use PhpParser\Node\UnionType as PhpParserUnionType;
|
||||
use PHPStan\Type\UnionType;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\ParamTagRemover;
|
||||
use Rector\DeadDocBlock\TagRemover\ReturnTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ParamTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ReturnTagRemover;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
||||
|
@ -13,7 +13,7 @@ use PHPStan\Type\ObjectType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\ParamTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ParamTagRemover;
|
||||
use Rector\TypeDeclaration\TypeInferer\ParamTypeInferer;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
@ -19,7 +19,7 @@ use PHPStan\Type\VoidType;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\DeadDocBlock\TagRemover\ReturnTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ReturnTagRemover;
|
||||
use Rector\Privatization\TypeManipulator\NormalizeTypeToRespectArrayScalarType;
|
||||
use Rector\TypeDeclaration\NodeTypeAnalyzer\DetailedTypeAnalyzer;
|
||||
use Rector\TypeDeclaration\TypeAnalyzer\AdvancedArrayAnalyzer;
|
||||
|
@ -13,7 +13,7 @@ use PhpParser\Node\Stmt\Interface_;
|
||||
use PHPStan\Type\MixedType;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\DeadDocBlock\TagRemover\ParamTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\ParamTagRemover;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
||||
use Rector\TypeDeclaration\ChildPopulator\ChildParamPopulator;
|
||||
|
@ -9,7 +9,7 @@ use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Type\MixedType;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\DeadDocBlock\TagRemover\VarTagRemover;
|
||||
use Rector\DeadCode\PhpDoc\TagRemover\VarTagRemover;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
||||
use Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer\ConstructorPropertyTypeInferer;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
|
Loading…
x
Reference in New Issue
Block a user