From 0e93e9b50ad9f77c9cb111e1b4683e6dd344a7cf Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 10 Oct 2026 12:51:30 +0200 Subject: [PATCH 1/3] Use Rector\RuleDoc namespace instead of deprecated symplify/rule-doc-generator-contracts The symplify/rule-doc-generator-contracts package is deprecated. Its classes are inlined in rector-src under the Rector\RuleDoc namespace, so switch rule imports from Symplify\RuleDocGenerator\* to Rector\RuleDoc\*. --- .../Class_/EventSubscriberInterfaceToAttributeRector.php | 4 ++-- .../Rector/Class_/AddAnnotationToRepositoryRector.php | 4 ++-- ...sitoryServiceLocatorToRepositoryServiceInjectionRector.php | 4 ++-- .../MoveCurrentDateTimeDefaultInEntityToConstructorRector.php | 4 ++-- .../Rector/Class_/RemoveEmptyTableAttributeRector.php | 4 ++-- .../Rector/Class_/TypeNullableEntityFromDocblockRector.php | 4 ++-- .../Rector/Class_/YamlToAttributeDoctrineMappingRector.php | 4 ++-- .../Property/CorrectDefaultTypesOnEntityPropertyRector.php | 4 ++-- .../Rector/Property/TypedPropertyFromColumnTypeRector.php | 4 ++-- .../Property/TypedPropertyFromToOneRelationTypeRector.php | 4 ++-- .../Rector/CriteriaOrderingConstantsDeprecationRector.php | 4 ++-- .../MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php | 4 ++-- .../Rector/MethodCall/ReplaceFetchAllMethodCallRector.php | 4 ++-- ...ryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php | 4 ++-- .../Rector/Identical/PlatformGetNameToInstanceofRector.php | 4 ++-- .../MethodCall/MigrateQueryBuilderResetQueryPartRector.php | 4 ++-- .../ChangeCompositeExpressionAddMultipleWithWithRector.php | 4 ++-- .../ExecuteQueryParamsToBindValueRector.php | 4 ++-- rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php | 4 ++-- .../Rector/MethodCall/AddGetReferenceTypeRector.php | 4 ++-- .../ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php | 4 ++-- rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php | 4 ++-- .../Rector/MethodCall/CastDoctrineExprToStringRector.php | 4 ++-- .../MethodCall/SetParametersArrayToCollectionRector.php | 4 ++-- .../Attribute/DoctrineOrderByAttributeSortDirectionRector.php | 4 ++-- .../MethodCall/DoctrineQueryBuilderSortDirectionRector.php | 4 ++-- .../Assign/ArrayDimFetchAssignToAddCollectionCallRector.php | 4 ++-- .../Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php | 4 ++-- .../ClassMethod/CollectionDocblockGenericTypeRector.php | 4 ++-- .../Rector/ClassMethod/CollectionGetterNativeTypeRector.php | 4 ++-- .../CollectionParamTypeSetterToCollectionPropertyRector.php | 4 ++-- .../ClassMethod/CollectionSetterParamNativeTypeRector.php | 4 ++-- .../Rector/ClassMethod/DefaultCollectionKeyRector.php | 4 ++-- .../ClassMethod/NarrowArrayCollectionToCollectionRector.php | 4 ++-- .../Rector/ClassMethod/NarrowParamUnionToCollectionRector.php | 4 ++-- .../ClassMethod/NarrowReturnUnionToCollectionRector.php | 4 ++-- .../RemoveNewArrayCollectionOutsideConstructorRector.php | 4 ++-- .../RemoveNullFromNullableCollectionTypeRector.php | 4 ++-- .../ClassMethod/ReturnArrayToNewArrayCollectionRector.php | 4 ++-- .../Rector/ClassMethod/ReturnCollectionDocblockRector.php | 4 ++-- .../CompleteParamDocblockFromSetterToCollectionRector.php | 4 ++-- .../Class_/CompletePropertyDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/CompleteReturnDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/InitializeCollectionInConstructorRector.php | 4 ++-- ...emoveNullFromInstantiatedArrayCollectionPropertyRector.php | 4 ++-- .../Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php | 4 ++-- .../Expression/RemoveAssertNotNullOnCollectionRector.php | 4 ++-- .../Expression/RemoveCoalesceAssignOnCollectionRector.php | 4 ++-- .../Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/CurrentOnCollectionToArrayRector.php | 4 ++-- .../FuncCall/InArrayOnCollectionToContainsCallRector.php | 4 ++-- .../Rector/If_/RemoveIfCollectionIdenticalToNullRector.php | 4 ++-- .../Rector/If_/RemoveIfInstanceofCollectionRector.php | 4 ++-- .../Rector/If_/RemoveIsArrayOnCollectionRector.php | 4 ++-- .../Rector/If_/RemoveUselessIsEmptyAssignRector.php | 4 ++-- .../MethodCall/AssertNullOnCollectionToAssertEmptyRector.php | 4 ++-- .../AssertSameCountOnCollectionToAssertCountRector.php | 4 ++-- .../Rector/MethodCall/SetArrayToNewCollectionRector.php | 4 ++-- .../Rector/New_/RemoveNewArrayCollectionWrapRector.php | 4 ++-- .../NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php | 4 ++-- .../Rector/Property/NarrowPropertyUnionToCollectionRector.php | 4 ++-- .../Property/TypedPropertyFromToManyRelationTypeRector.php | 4 ++-- 63 files changed, 126 insertions(+), 126 deletions(-) diff --git a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php index d3e71891..4bb2b68f 100644 --- a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php +++ b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php @@ -19,12 +19,12 @@ use PHPStan\Reflection\ReflectionProvider; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\Contract\MinPhpVersionInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/DoctrineBundle/pull/1592 diff --git a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php index 51813b36..4f1756c7 100644 --- a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php +++ b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php @@ -18,11 +18,11 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\MethodName; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/DoctrineBundle/commit/2f12b5302bafac39c70b024e1686119be28b79ab diff --git a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php index dff6c6b7..5ef9dd25 100644 --- a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php +++ b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as too project specific to be a generic rule. The repository class was resolved by reading the entity diff --git a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php index 7d6ffaf9..c966f0f3 100644 --- a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php +++ b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as the database level default and the PHP level default are not interchangeable. Moving the default to diff --git a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php index 873c34ef..79bbafa6 100644 --- a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php +++ b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as the removal has no effect on the mapping, while the missing attribute makes the entity harder to diff --git a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php index 8534a186..161ec0dc 100644 --- a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php +++ b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php @@ -26,9 +26,9 @@ use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @deprecated as too opinionated and narrow use-cased. Blindly forcing all entity properties to nullable native types diff --git a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php index e51cd8b3..a370db98 100644 --- a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php +++ b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as incomplete and prone to create buggy code. Use custom rules tailored to your YAML mapping instead. diff --git a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php index da576205..28e333e3 100644 --- a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php +++ b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php @@ -22,8 +22,8 @@ use Rector\Exception\NotImplementedYetException; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\CorrectDefaultTypesOnEntityPropertyRector\CorrectDefaultTypesOnEntityPropertyRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php index b5e38b73..63ed4353 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php @@ -22,12 +22,12 @@ use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\TypedPropertyFromColumnTypeRector\TypedPropertyFromColumnTypeRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php index 19719bae..e8f33b0a 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php @@ -20,13 +20,13 @@ use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersion; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\TypedPropertyFromToOneRelationTypeRector\TypedPropertyFromToOneRelationTypeRectorTest diff --git a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php index 9191edd1..5a3b8bb4 100644 --- a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php +++ b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php @@ -18,10 +18,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Collection22\Rector\CriteriaOrderingConstantsDeprecations\CriteriaOrderingConstantDeprecationRectorTest diff --git a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php index 5a69c57b..d245a21c 100644 --- a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php +++ b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @changelog https://github.com/doctrine/dbal/pull/3853 diff --git a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php index 27628536..ea7677f6 100644 --- a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php +++ b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal211\Rector\MethodCall\ReplaceFetchAllMethodCallRector\ReplaceFetchAllMethodCallRectorTest diff --git a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php index 455e32e3..9854ac34 100644 --- a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php +++ b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal31\Rector\MethodCall\QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector\QueryBuilderExecuteToExecuteQueryOrExecuteStatementRectorTest diff --git a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php index 8021845a..1963a3e6 100644 --- a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php +++ b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/pull/4755 diff --git a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php index cc9bcd57..4e79ad8f 100644 --- a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php +++ b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/blob/4.2.x/UPGRADE.md#deprecated-getting-query-parts-from-querybuilder diff --git a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php index 15a09698..5b919150 100644 --- a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php +++ b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php @@ -10,10 +10,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-removed-compositeexpression-methods diff --git a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php index 7846f6d0..aa176757 100644 --- a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php +++ b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php @@ -21,10 +21,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PhpParser\Enum\NodeGroup; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal40\Rector\StmtsAwareInterface\ExecuteQueryParamsToBindValueRector\ExecuteQueryParamsToBindValueRectorTest diff --git a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php index f850fe92..a96c06be 100644 --- a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php +++ b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php @@ -15,10 +15,10 @@ use PhpParser\Node\Scalar\Int_; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/pull/6504/files diff --git a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php index 6bb7afc6..560c7263 100644 --- a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php +++ b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php @@ -15,10 +15,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\DoctrineFixture\Rector\MethodCall\AddGetReferenceTypeRector\AddGetReferenceTypeRectorTest diff --git a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php index e23001b4..ab27e0b0 100644 --- a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php +++ b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php @@ -11,10 +11,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\Enum\EventClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/10086 diff --git a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php index eafea2b7..2a2fafcc 100644 --- a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php +++ b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php @@ -15,10 +15,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @changelog https://github.com/doctrine/orm/pull/7885 diff --git a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php index 7c5a178f..06d42de4 100644 --- a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php +++ b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php @@ -11,10 +11,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/commit/4d73e3ce7801d3bf3254257332e903d8ecea4096 diff --git a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php index c06aa710..08b4156d 100644 --- a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php +++ b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php @@ -21,10 +21,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/9490 diff --git a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php index 1c7f8ad1..0a14cbe5 100644 --- a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php +++ b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php @@ -10,10 +10,10 @@ use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/12454 diff --git a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php index 49d266f4..01e30865 100644 --- a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php +++ b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php @@ -11,10 +11,10 @@ use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/issues/11313 diff --git a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php index 96f8d441..6a60abf6 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php @@ -12,8 +12,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayDimFetchAssignToAddCollectionCallRector\ArrayDimFetchAssignToAddCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php index c6e63d06..ab06f4b1 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php @@ -12,8 +12,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayOffsetSetToSetCollectionCallRector\ArrayOffsetSetToSetCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php index 4bdc215d..edfc6328 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php @@ -18,8 +18,8 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\FreshArrayCollectionAnalyzer; use Rector\PhpParser\Node\BetterNodeFinder; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionDocblockGenericTypeRector\CollectionDocblockGenericTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php index 6af1c0ec..20cf2d42 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionGetterNativeTypeRector\CollectionGetterNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php index 3b4681f1..4a4c9490 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php @@ -17,8 +17,8 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionParamTypeSetterToCollectionPropertyRector\CollectionParamTypeSetterToCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php index 0a7cfffd..dc35a800 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php @@ -19,8 +19,8 @@ use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionSetterParamNativeTypeRector\CollectionSetterParamNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php index 3e5a0d33..04539e33 100644 --- a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php @@ -14,8 +14,8 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\DefaultCollectionKeyRector\DefaultCollectionKeyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php index 209afd87..c114aa36 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php @@ -24,8 +24,8 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowArrayCollectionToCollectionRector\NarrowArrayCollectionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php index a0d93c81..57b20728 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php @@ -14,8 +14,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowParamUnionToCollectionRector\NarrowParamUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php index 45c4e0c3..2b8b4426 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php @@ -18,8 +18,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowReturnUnionToCollectionRector\NarrowReturnUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php index 423deb91..672fa226 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php @@ -13,9 +13,9 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\MethodName; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\RemoveNewArrayCollectionOutsideConstructorRector\RemoveNewArrayCollectionOutsideConstructorRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php index 980ffb10..2f8afb02 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php @@ -20,9 +20,9 @@ use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\RemoveNullFromNullableCollectionTypeRector\RemoveNullFromNullableCollectionTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php index 7dc0b67f..62082150 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php @@ -14,8 +14,8 @@ use PhpParser\Node\Stmt\Return_; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnArrayToNewArrayCollectionRector\ReturnArrayToNewArrayCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php index 2b1e306b..87bbbab4 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php @@ -16,9 +16,9 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnCollectionDocblockRector\ReturnCollectionDocblockRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php index 3b8d8ded..744dbffb 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\CodeQuality\SetterCollectionResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteParamDocblockFromSetterToCollectionRector\CompleteParamDocblockFromSetterToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php index 16b34046..190d76b0 100644 --- a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php @@ -20,9 +20,9 @@ use Rector\Doctrine\TypeAnalyzer\CollectionVarTagValueNodeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompletePropertyDocblockFromToManyRector\CompletePropertyDocblockFromToManyRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php index 7c4edf2c..7d48a680 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php @@ -16,10 +16,10 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; use Rector\VendorLocker\NodeVendorLocker\ClassMethodReturnTypeOverrideGuard; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteReturnDocblockFromToManyRector\CompleteReturnDocblockFromToManyRectorTest diff --git a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php index e3b656ad..ac9ed5b1 100644 --- a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php +++ b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php @@ -13,9 +13,9 @@ use Rector\NodeManipulator\ClassDependencyManipulator; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\TypeDeclaration\AlreadyAssignDetector\ConstructorAssignDetector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\InitializeCollectionInConstructorRector\InitializeCollectionInConstructorRectorTest diff --git a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php index 933d123f..65ec874f 100644 --- a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php @@ -13,8 +13,8 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\InitializedArrayCollectionPropertyResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\RemoveNullFromInstantiatedArrayCollectionPropertyRector\RemoveNullFromInstantiatedArrayCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php index 6ed014b7..c8447849 100644 --- a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php +++ b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php @@ -10,8 +10,8 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php index 6124d0eb..b0abc988 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\Enum\PHPUnitClassName; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveAssertNotNullOnCollectionRector\RemoveAssertNotNullOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php index 98827633..eefd8b9a 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php @@ -10,8 +10,8 @@ use PhpParser\NodeVisitorAbstract; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveCoalesceAssignOnCollectionRector\RemoveCoalesceAssignOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php index ae07e51a..bc9bd30c 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMapOnCollectionToArrayRector\ArrayMapOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php index 4ed93e85..9cc43957 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php @@ -9,9 +9,9 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMergeOnCollectionToArrayRector\ArrayMergeOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php index d869dc05..d7cb8cc9 100644 --- a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\CurrentOnCollectionToArrayRector\CurrentOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php index 0ca5d85a..026aa650 100644 --- a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php +++ b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php index 76f43c23..e7817508 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php @@ -14,8 +14,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfCollectionIdenticalToNullRector\RemoveIfCollectionIdenticalToNullRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php index 1bddbda0..adae1220 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php @@ -24,8 +24,8 @@ use Rector\PHPStan\ScopeFetcher; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfInstanceofCollectionRector\RemoveIfInstanceofCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php index 578432ba..88135b22 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php @@ -14,8 +14,8 @@ use PhpParser\NodeVisitorAbstract; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIsArrayOnCollectionRector\RemoveIsArrayOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php index 0ee37a6e..631f9dd7 100644 --- a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php @@ -15,8 +15,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveUselessIsEmptyAssignRector\RemoveUselessIsEmptyAssignRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php index fd4074b7..2bf351f8 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php @@ -10,8 +10,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertNullOnCollectionToAssertEmptyRector\AssertNullOnCollectionToAssertEmptyRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php index 556cb418..91212d4c 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertSameCountOnCollectionToAssertCountRector\AssertSameCountOnCollectionToAssertCountRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php index 7448d3ce..b80d5f91 100644 --- a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php +++ b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php @@ -15,8 +15,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionParamCallDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\SetArrayToNewCollectionRector\SetArrayToNewCollectionRectorTest diff --git a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php index f73b79d3..2ed4eef4 100644 --- a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php +++ b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php @@ -10,8 +10,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\New_\RemoveNewArrayCollectionWrapRector\RemoveNewArrayCollectionWrapRectorTest diff --git a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php index ac0f53db..85ec1641 100644 --- a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php +++ b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\NullsafeMethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\NullsafeMethodCall\RemoveNullsafeOnCollectionRector\RemoveNullsafeOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php index 4609241d..c6391957 100644 --- a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php @@ -19,8 +19,8 @@ use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\NarrowPropertyUnionToCollectionRector\NarrowPropertyUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php index e6a1bce4..e8bdc1e3 100644 --- a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php +++ b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php @@ -14,11 +14,11 @@ use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; +use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\TypedPropertyFromToManyRelationTypeRector\TypedPropertyFromToManyRelationTypeRectorTest From 3879d64ca9485a802192233e76bb41e61bb0f014 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 10 Oct 2026 14:56:53 +0200 Subject: [PATCH 2/3] Use Rector\Doc namespace over Rector\RuleDoc\ValueObject --- .../Class_/EventSubscriberInterfaceToAttributeRector.php | 4 ++-- .../Rector/Class_/AddAnnotationToRepositoryRector.php | 4 ++-- ...sitoryServiceLocatorToRepositoryServiceInjectionRector.php | 4 ++-- .../MoveCurrentDateTimeDefaultInEntityToConstructorRector.php | 4 ++-- .../Rector/Class_/RemoveEmptyTableAttributeRector.php | 4 ++-- .../Rector/Class_/TypeNullableEntityFromDocblockRector.php | 4 ++-- .../Rector/Class_/YamlToAttributeDoctrineMappingRector.php | 4 ++-- .../Property/CorrectDefaultTypesOnEntityPropertyRector.php | 4 ++-- .../Rector/Property/TypedPropertyFromColumnTypeRector.php | 4 ++-- .../Property/TypedPropertyFromToOneRelationTypeRector.php | 4 ++-- .../Rector/CriteriaOrderingConstantsDeprecationRector.php | 4 ++-- .../MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php | 4 ++-- .../Rector/MethodCall/ReplaceFetchAllMethodCallRector.php | 4 ++-- ...ryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php | 4 ++-- .../Rector/Identical/PlatformGetNameToInstanceofRector.php | 4 ++-- .../MethodCall/MigrateQueryBuilderResetQueryPartRector.php | 4 ++-- .../ChangeCompositeExpressionAddMultipleWithWithRector.php | 4 ++-- .../ExecuteQueryParamsToBindValueRector.php | 4 ++-- rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php | 4 ++-- .../Rector/MethodCall/AddGetReferenceTypeRector.php | 4 ++-- .../ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php | 4 ++-- rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php | 4 ++-- .../Rector/MethodCall/CastDoctrineExprToStringRector.php | 4 ++-- .../MethodCall/SetParametersArrayToCollectionRector.php | 4 ++-- .../Attribute/DoctrineOrderByAttributeSortDirectionRector.php | 4 ++-- .../MethodCall/DoctrineQueryBuilderSortDirectionRector.php | 4 ++-- .../Assign/ArrayDimFetchAssignToAddCollectionCallRector.php | 4 ++-- .../Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php | 4 ++-- .../ClassMethod/CollectionDocblockGenericTypeRector.php | 4 ++-- .../Rector/ClassMethod/CollectionGetterNativeTypeRector.php | 4 ++-- .../CollectionParamTypeSetterToCollectionPropertyRector.php | 4 ++-- .../ClassMethod/CollectionSetterParamNativeTypeRector.php | 4 ++-- .../Rector/ClassMethod/DefaultCollectionKeyRector.php | 4 ++-- .../ClassMethod/NarrowArrayCollectionToCollectionRector.php | 4 ++-- .../Rector/ClassMethod/NarrowParamUnionToCollectionRector.php | 4 ++-- .../ClassMethod/NarrowReturnUnionToCollectionRector.php | 4 ++-- .../RemoveNewArrayCollectionOutsideConstructorRector.php | 4 ++-- .../RemoveNullFromNullableCollectionTypeRector.php | 4 ++-- .../ClassMethod/ReturnArrayToNewArrayCollectionRector.php | 4 ++-- .../Rector/ClassMethod/ReturnCollectionDocblockRector.php | 4 ++-- .../CompleteParamDocblockFromSetterToCollectionRector.php | 4 ++-- .../Class_/CompletePropertyDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/CompleteReturnDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/InitializeCollectionInConstructorRector.php | 4 ++-- ...emoveNullFromInstantiatedArrayCollectionPropertyRector.php | 4 ++-- .../Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php | 4 ++-- .../Expression/RemoveAssertNotNullOnCollectionRector.php | 4 ++-- .../Expression/RemoveCoalesceAssignOnCollectionRector.php | 4 ++-- .../Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/CurrentOnCollectionToArrayRector.php | 4 ++-- .../FuncCall/InArrayOnCollectionToContainsCallRector.php | 4 ++-- .../Rector/If_/RemoveIfCollectionIdenticalToNullRector.php | 4 ++-- .../Rector/If_/RemoveIfInstanceofCollectionRector.php | 4 ++-- .../Rector/If_/RemoveIsArrayOnCollectionRector.php | 4 ++-- .../Rector/If_/RemoveUselessIsEmptyAssignRector.php | 4 ++-- .../MethodCall/AssertNullOnCollectionToAssertEmptyRector.php | 4 ++-- .../AssertSameCountOnCollectionToAssertCountRector.php | 4 ++-- .../Rector/MethodCall/SetArrayToNewCollectionRector.php | 4 ++-- .../Rector/New_/RemoveNewArrayCollectionWrapRector.php | 4 ++-- .../NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php | 4 ++-- .../Rector/Property/NarrowPropertyUnionToCollectionRector.php | 4 ++-- .../Property/TypedPropertyFromToManyRelationTypeRector.php | 4 ++-- 63 files changed, 126 insertions(+), 126 deletions(-) diff --git a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php index 4bb2b68f..68b86957 100644 --- a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php +++ b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php @@ -17,10 +17,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; use PHPStan\Reflection\ReflectionProvider; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\Contract\MinPhpVersionInterface; diff --git a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php index 4f1756c7..a55edbae 100644 --- a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php +++ b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php @@ -16,10 +16,10 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\MethodName; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php index 5ef9dd25..861db813 100644 --- a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php +++ b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as too project specific to be a generic rule. The repository class was resolved by reading the entity diff --git a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php index c966f0f3..4253848c 100644 --- a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php +++ b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as the database level default and the PHP level default are not interchangeable. Moving the default to diff --git a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php index 79bbafa6..099b5f97 100644 --- a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php +++ b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as the removal has no effect on the mapping, while the missing attribute makes the entity harder to diff --git a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php index 161ec0dc..7a9ce49d 100644 --- a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php +++ b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php @@ -21,13 +21,13 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\DeadCode\PhpDoc\DeadVarTagValueNodeAnalyzer; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\Helper\SetterGetterFinder; use Rector\Doctrine\NodeAnalyzer\DoctrineEntityDetector; use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php index a370db98..e1b5140e 100644 --- a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php +++ b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @deprecated as incomplete and prone to create buggy code. Use custom rules tailored to your YAML mapping instead. diff --git a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php index 28e333e3..abc30939 100644 --- a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php +++ b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php @@ -18,12 +18,12 @@ use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode; use Rector\BetterPhpDocParser\PhpDoc\StringNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\MappingClass; use Rector\Exception\NotImplementedYetException; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\CorrectDefaultTypesOnEntityPropertyRector\CorrectDefaultTypesOnEntityPropertyRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php index 63ed4353..0e0707fc 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php @@ -16,14 +16,14 @@ use PHPStan\Type\TypeCombinator; use PHPStan\Type\UnionType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\Doctrine\NodeManipulator\NullabilityColumnPropertyTypeResolver; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersionFeature; diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php index e8f33b0a..d8319a96 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php @@ -15,13 +15,13 @@ use PHPStan\Type\UnionType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeManipulator\ToOneRelationPropertyTypeResolver; use Rector\Php\PhpVersionProvider; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersion; diff --git a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php index 5a3b8bb4..183f759d 100644 --- a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php +++ b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php @@ -16,10 +16,10 @@ use PhpParser\Node\Scalar\String_; use PHPStan\Type\IsSuperTypeOfResult; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php index d245a21c..7b381ada 100644 --- a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php +++ b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php index ea7677f6..18652a8f 100644 --- a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php +++ b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php index 9854ac34..eb05b31c 100644 --- a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php +++ b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php @@ -9,9 +9,9 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php index 1963a3e6..1a83fe6f 100644 --- a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php +++ b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php @@ -12,9 +12,9 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php index 4e79ad8f..3e9d7200 100644 --- a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php +++ b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php index 5b919150..1dc21c2b 100644 --- a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php +++ b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php index aa176757..6339ad14 100644 --- a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php +++ b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php @@ -18,11 +18,11 @@ use PhpParser\Node\Stmt\Foreach_; use PhpParser\NodeFinder; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PhpParser\Enum\NodeGroup; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php index a96c06be..84825228 100644 --- a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php +++ b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Expr\New_; use PhpParser\Node\Name; use PhpParser\Node\Scalar\Int_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php index 560c7263..c6c03756 100644 --- a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php +++ b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php @@ -11,12 +11,12 @@ use PhpParser\Node\Name\FullyQualified; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\DoctrineFixture\Reflection\ParameterTypeResolver; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php index ab27e0b0..63307378 100644 --- a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php +++ b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php @@ -8,11 +8,11 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\Enum\EventClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php index 2a2fafcc..532cc030 100644 --- a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php +++ b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Foreach_; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php index 06d42de4..018748c2 100644 --- a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php +++ b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php @@ -9,10 +9,10 @@ use PhpParser\Node\Expr\Cast\String_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php index 08b4156d..a73807cd 100644 --- a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php +++ b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php @@ -19,10 +19,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php index 0a14cbe5..3c7a6f1e 100644 --- a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php +++ b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Attribute; use PhpParser\Node\Expr\Array_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php index 01e30865..c8603a23 100644 --- a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php +++ b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php @@ -8,11 +8,11 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\New_; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php index 6a60abf6..714c890f 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayDimFetchAssignToAddCollectionCallRector\ArrayDimFetchAssignToAddCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php index ab06f4b1..2c3d8623 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayOffsetSetToSetCollectionCallRector\ArrayOffsetSetToSetCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php index edfc6328..46345451 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php @@ -14,12 +14,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\ValueObject\Type\FullyQualifiedIdentifierTypeNode; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\FreshArrayCollectionAnalyzer; use Rector\PhpParser\Node\BetterNodeFinder; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionDocblockGenericTypeRector\CollectionDocblockGenericTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php index 20cf2d42..7a52b27e 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionGetterNativeTypeRector\CollectionGetterNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php index 4a4c9490..1fe8cf83 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php @@ -15,10 +15,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionParamTypeSetterToCollectionPropertyRector\CollectionParamTypeSetterToCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php index dc35a800..dee0c540 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php @@ -14,13 +14,13 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionSetterParamNativeTypeRector\CollectionSetterParamNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php index 04539e33..ae441a62 100644 --- a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php @@ -12,10 +12,10 @@ use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\DefaultCollectionKeyRector\DefaultCollectionKeyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php index c114aa36..5cad8a5a 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php @@ -22,10 +22,10 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowArrayCollectionToCollectionRector\NarrowArrayCollectionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php index 57b20728..34ae9fc8 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php @@ -11,11 +11,11 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowParamUnionToCollectionRector\NarrowParamUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php index 2b8b4426..03e0d2a4 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php @@ -15,11 +15,11 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowReturnUnionToCollectionRector\NarrowReturnUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php index 672fa226..4b31c55d 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php @@ -10,11 +10,11 @@ use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\ValueObject\MethodName; /** diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php index 2f8afb02..26372325 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php @@ -16,12 +16,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php index 62082150..e718b25a 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php @@ -12,10 +12,10 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnArrayToNewArrayCollectionRector\ReturnArrayToNewArrayCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php index 87bbbab4..571e589a 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php @@ -14,10 +14,10 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php index 744dbffb..05cf6bc8 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php @@ -9,11 +9,11 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\SetterCollectionResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteParamDocblockFromSetterToCollectionRector\CompleteParamDocblockFromSetterToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php index 190d76b0..e75376de 100644 --- a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php @@ -12,6 +12,8 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\Enum\CollectionMapping; use Rector\Doctrine\NodeAnalyzer\AttributeFinder; use Rector\Doctrine\NodeAnalyzer\TargetEntityResolver; @@ -20,8 +22,6 @@ use Rector\Doctrine\TypeAnalyzer\CollectionVarTagValueNodeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; /** diff --git a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php index 7d48a680..1a356cca 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php @@ -10,14 +10,14 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\MethodUniqueReturnedPropertyResolver; use Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory; use Rector\Doctrine\TypeAnalyzer\CollectionTypeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; use Rector\VendorLocker\NodeVendorLocker\ClassMethodReturnTypeOverrideGuard; diff --git a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php index ac9ed5b1..a98cd910 100644 --- a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php +++ b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php @@ -6,6 +6,8 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeFactory\ArrayCollectionAssignFactory; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionPropertyDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; @@ -13,8 +15,6 @@ use Rector\NodeManipulator\ClassDependencyManipulator; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\TypeDeclaration\AlreadyAssignDetector\ConstructorAssignDetector; /** diff --git a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php index 65ec874f..d1122c1f 100644 --- a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php @@ -9,12 +9,12 @@ use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\Class_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\InitializedArrayCollectionPropertyResolver; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\RemoveNullFromInstantiatedArrayCollectionPropertyRector\RemoveNullFromInstantiatedArrayCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php index c8447849..309e46cb 100644 --- a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php +++ b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\Empty_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php index b0abc988..e3de272f 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\NodeVisitor; use PHPUnit\Framework\Assert; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\Enum\PHPUnitClassName; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveAssertNotNullOnCollectionRector\RemoveAssertNotNullOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php index eefd8b9a..dbcb9d43 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\AssignOp\Coalesce; use PhpParser\Node\Stmt\Expression; use PhpParser\NodeVisitorAbstract; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveCoalesceAssignOnCollectionRector\RemoveCoalesceAssignOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php index bc9bd30c..42e22c53 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMapOnCollectionToArrayRector\ArrayMapOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php index 9cc43957..ee884391 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; /** diff --git a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php index d7cb8cc9..8246dca3 100644 --- a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\CurrentOnCollectionToArrayRector\CurrentOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php index 026aa650..d6dc8e21 100644 --- a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php +++ b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php index e7817508..50c73479 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php @@ -11,11 +11,11 @@ use PhpParser\Node\Expr\BinaryOp\Identical; use PhpParser\Node\Expr\BinaryOp\NotIdentical; use PhpParser\Node\Stmt\If_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfCollectionIdenticalToNullRector\RemoveIfCollectionIdenticalToNullRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php index adae1220..4ff6a063 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php @@ -18,14 +18,14 @@ use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitorAbstract; use PHPStan\Reflection\ClassReflection; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\TestClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\PHPStan\ScopeFetcher; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfInstanceofCollectionRector\RemoveIfInstanceofCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php index 88135b22..cc71e499 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php @@ -12,10 +12,10 @@ use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitorAbstract; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIsArrayOnCollectionRector\RemoveIsArrayOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php index 631f9dd7..5ff36b06 100644 --- a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php @@ -12,11 +12,11 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitor; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveUselessIsEmptyAssignRector\RemoveUselessIsEmptyAssignRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php index 2bf351f8..11c768f8 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertNullOnCollectionToAssertEmptyRector\AssertNullOnCollectionToAssertEmptyRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php index 91212d4c..c39f4950 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertSameCountOnCollectionToAssertCountRector\AssertSameCountOnCollectionToAssertCountRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php index b80d5f91..0f2498fb 100644 --- a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php +++ b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php @@ -12,11 +12,11 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Name\FullyQualified; use PHPStan\Type\ObjectType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionParamCallDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\SetArrayToNewCollectionRector\SetArrayToNewCollectionRectorTest diff --git a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php index 2ed4eef4..b0a63408 100644 --- a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php +++ b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\New_; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\New_\RemoveNewArrayCollectionWrapRector\RemoveNewArrayCollectionWrapRectorTest diff --git a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php index 85ec1641..36fa8b11 100644 --- a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php +++ b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\NullsafeMethodCall; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\NullsafeMethodCall\RemoveNullsafeOnCollectionRector\RemoveNullsafeOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php index c6391957..d1856a8e 100644 --- a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php @@ -15,12 +15,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\NarrowPropertyUnionToCollectionRector\NarrowPropertyUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php index e8bdc1e3..f2fce3de 100644 --- a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php +++ b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php @@ -9,13 +9,13 @@ use PHPStan\Type\MixedType; use PHPStan\Type\Type; use PHPStan\Type\UnionType; +use Rector\Doc\CodeSample\CodeSample; +use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\NodeManipulator\ToManyRelationPropertyTypeResolver; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; -use Rector\RuleDoc\ValueObject\CodeSample\CodeSample; -use Rector\RuleDoc\ValueObject\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; From ffa6efced3f72e896f353c82f7a931956537ed55 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 10 Oct 2026 15:03:25 +0200 Subject: [PATCH 3/3] Rename Rector\Doc back to Rector\RuleDoc namespace --- .../Class_/EventSubscriberInterfaceToAttributeRector.php | 4 ++-- .../Rector/Class_/AddAnnotationToRepositoryRector.php | 4 ++-- ...sitoryServiceLocatorToRepositoryServiceInjectionRector.php | 4 ++-- .../MoveCurrentDateTimeDefaultInEntityToConstructorRector.php | 4 ++-- .../Rector/Class_/RemoveEmptyTableAttributeRector.php | 4 ++-- .../Rector/Class_/TypeNullableEntityFromDocblockRector.php | 4 ++-- .../Rector/Class_/YamlToAttributeDoctrineMappingRector.php | 4 ++-- .../Property/CorrectDefaultTypesOnEntityPropertyRector.php | 4 ++-- .../Rector/Property/TypedPropertyFromColumnTypeRector.php | 4 ++-- .../Property/TypedPropertyFromToOneRelationTypeRector.php | 4 ++-- .../Rector/CriteriaOrderingConstantsDeprecationRector.php | 4 ++-- .../MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php | 4 ++-- .../Rector/MethodCall/ReplaceFetchAllMethodCallRector.php | 4 ++-- ...ryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php | 4 ++-- .../Rector/Identical/PlatformGetNameToInstanceofRector.php | 4 ++-- .../MethodCall/MigrateQueryBuilderResetQueryPartRector.php | 4 ++-- .../ChangeCompositeExpressionAddMultipleWithWithRector.php | 4 ++-- .../ExecuteQueryParamsToBindValueRector.php | 4 ++-- rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php | 4 ++-- .../Rector/MethodCall/AddGetReferenceTypeRector.php | 4 ++-- .../ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php | 4 ++-- rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php | 4 ++-- .../Rector/MethodCall/CastDoctrineExprToStringRector.php | 4 ++-- .../MethodCall/SetParametersArrayToCollectionRector.php | 4 ++-- .../Attribute/DoctrineOrderByAttributeSortDirectionRector.php | 4 ++-- .../MethodCall/DoctrineQueryBuilderSortDirectionRector.php | 4 ++-- .../Assign/ArrayDimFetchAssignToAddCollectionCallRector.php | 4 ++-- .../Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php | 4 ++-- .../ClassMethod/CollectionDocblockGenericTypeRector.php | 4 ++-- .../Rector/ClassMethod/CollectionGetterNativeTypeRector.php | 4 ++-- .../CollectionParamTypeSetterToCollectionPropertyRector.php | 4 ++-- .../ClassMethod/CollectionSetterParamNativeTypeRector.php | 4 ++-- .../Rector/ClassMethod/DefaultCollectionKeyRector.php | 4 ++-- .../ClassMethod/NarrowArrayCollectionToCollectionRector.php | 4 ++-- .../Rector/ClassMethod/NarrowParamUnionToCollectionRector.php | 4 ++-- .../ClassMethod/NarrowReturnUnionToCollectionRector.php | 4 ++-- .../RemoveNewArrayCollectionOutsideConstructorRector.php | 4 ++-- .../RemoveNullFromNullableCollectionTypeRector.php | 4 ++-- .../ClassMethod/ReturnArrayToNewArrayCollectionRector.php | 4 ++-- .../Rector/ClassMethod/ReturnCollectionDocblockRector.php | 4 ++-- .../CompleteParamDocblockFromSetterToCollectionRector.php | 4 ++-- .../Class_/CompletePropertyDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/CompleteReturnDocblockFromToManyRector.php | 4 ++-- .../Rector/Class_/InitializeCollectionInConstructorRector.php | 4 ++-- ...emoveNullFromInstantiatedArrayCollectionPropertyRector.php | 4 ++-- .../Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php | 4 ++-- .../Expression/RemoveAssertNotNullOnCollectionRector.php | 4 ++-- .../Expression/RemoveCoalesceAssignOnCollectionRector.php | 4 ++-- .../Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php | 4 ++-- .../Rector/FuncCall/CurrentOnCollectionToArrayRector.php | 4 ++-- .../FuncCall/InArrayOnCollectionToContainsCallRector.php | 4 ++-- .../Rector/If_/RemoveIfCollectionIdenticalToNullRector.php | 4 ++-- .../Rector/If_/RemoveIfInstanceofCollectionRector.php | 4 ++-- .../Rector/If_/RemoveIsArrayOnCollectionRector.php | 4 ++-- .../Rector/If_/RemoveUselessIsEmptyAssignRector.php | 4 ++-- .../MethodCall/AssertNullOnCollectionToAssertEmptyRector.php | 4 ++-- .../AssertSameCountOnCollectionToAssertCountRector.php | 4 ++-- .../Rector/MethodCall/SetArrayToNewCollectionRector.php | 4 ++-- .../Rector/New_/RemoveNewArrayCollectionWrapRector.php | 4 ++-- .../NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php | 4 ++-- .../Rector/Property/NarrowPropertyUnionToCollectionRector.php | 4 ++-- .../Property/TypedPropertyFromToManyRelationTypeRector.php | 4 ++-- 63 files changed, 126 insertions(+), 126 deletions(-) diff --git a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php index 68b86957..12de9d57 100644 --- a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php +++ b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php @@ -17,10 +17,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; use PHPStan\Reflection\ReflectionProvider; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\Contract\MinPhpVersionInterface; diff --git a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php index a55edbae..e85b2b23 100644 --- a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php +++ b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php @@ -16,10 +16,10 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\MethodName; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php index 861db813..14912005 100644 --- a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php +++ b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as too project specific to be a generic rule. The repository class was resolved by reading the entity diff --git a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php index 4253848c..4abacbef 100644 --- a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php +++ b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as the database level default and the PHP level default are not interchangeable. Moving the default to diff --git a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php index 099b5f97..608cb548 100644 --- a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php +++ b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as the removal has no effect on the mapping, while the missing attribute makes the entity harder to diff --git a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php index 7a9ce49d..66ed3a0d 100644 --- a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php +++ b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php @@ -21,13 +21,13 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\DeadCode\PhpDoc\DeadVarTagValueNodeAnalyzer; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\Helper\SetterGetterFinder; use Rector\Doctrine\NodeAnalyzer\DoctrineEntityDetector; use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php index e1b5140e..e0e13a4c 100644 --- a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php +++ b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as incomplete and prone to create buggy code. Use custom rules tailored to your YAML mapping instead. diff --git a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php index abc30939..2ba7bcdd 100644 --- a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php +++ b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php @@ -18,12 +18,12 @@ use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode; use Rector\BetterPhpDocParser\PhpDoc\StringNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\MappingClass; use Rector\Exception\NotImplementedYetException; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\CorrectDefaultTypesOnEntityPropertyRector\CorrectDefaultTypesOnEntityPropertyRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php index 0e0707fc..c589227c 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php @@ -16,14 +16,14 @@ use PHPStan\Type\TypeCombinator; use PHPStan\Type\UnionType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\Doctrine\NodeManipulator\NullabilityColumnPropertyTypeResolver; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersionFeature; diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php index d8319a96..fc1a69ba 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php @@ -15,13 +15,13 @@ use PHPStan\Type\UnionType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeManipulator\ToOneRelationPropertyTypeResolver; use Rector\Php\PhpVersionProvider; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersion; diff --git a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php index 183f759d..4247ce60 100644 --- a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php +++ b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php @@ -16,10 +16,10 @@ use PhpParser\Node\Scalar\String_; use PHPStan\Type\IsSuperTypeOfResult; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php index 7b381ada..eb1f177d 100644 --- a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php +++ b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php index 18652a8f..4db0800e 100644 --- a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php +++ b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php index eb05b31c..5a69f76c 100644 --- a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php +++ b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php @@ -9,9 +9,9 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php index 1a83fe6f..c142f382 100644 --- a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php +++ b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php @@ -12,9 +12,9 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php index 3e9d7200..0c6f3161 100644 --- a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php +++ b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php index 1dc21c2b..c57ca797 100644 --- a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php +++ b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php index 6339ad14..64e0edeb 100644 --- a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php +++ b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php @@ -18,11 +18,11 @@ use PhpParser\Node\Stmt\Foreach_; use PhpParser\NodeFinder; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PhpParser\Enum\NodeGroup; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php index 84825228..181fa39b 100644 --- a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php +++ b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Expr\New_; use PhpParser\Node\Name; use PhpParser\Node\Scalar\Int_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php index c6c03756..f972c2ec 100644 --- a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php +++ b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php @@ -11,12 +11,12 @@ use PhpParser\Node\Name\FullyQualified; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\DoctrineFixture\Reflection\ParameterTypeResolver; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php index 63307378..4937abdb 100644 --- a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php +++ b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php @@ -8,11 +8,11 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\Enum\EventClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php index 532cc030..5d41cfe5 100644 --- a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php +++ b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Foreach_; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php index 018748c2..d31e7b50 100644 --- a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php +++ b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php @@ -9,10 +9,10 @@ use PhpParser\Node\Expr\Cast\String_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php index a73807cd..1214a32e 100644 --- a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php +++ b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php @@ -19,10 +19,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php index 3c7a6f1e..005a7670 100644 --- a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php +++ b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Attribute; use PhpParser\Node\Expr\Array_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php index c8603a23..3b162388 100644 --- a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php +++ b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php @@ -8,11 +8,11 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\New_; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; diff --git a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php index 714c890f..990ec518 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayDimFetchAssignToAddCollectionCallRector\ArrayDimFetchAssignToAddCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php index 2c3d8623..436e5da2 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayOffsetSetToSetCollectionCallRector\ArrayOffsetSetToSetCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php index 46345451..b738d8d4 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php @@ -14,12 +14,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\ValueObject\Type\FullyQualifiedIdentifierTypeNode; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\FreshArrayCollectionAnalyzer; use Rector\PhpParser\Node\BetterNodeFinder; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionDocblockGenericTypeRector\CollectionDocblockGenericTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php index 7a52b27e..fc1d0566 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionGetterNativeTypeRector\CollectionGetterNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php index 1fe8cf83..158391ab 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php @@ -15,10 +15,10 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionParamTypeSetterToCollectionPropertyRector\CollectionParamTypeSetterToCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php index dee0c540..548a6255 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php @@ -14,13 +14,13 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionSetterParamNativeTypeRector\CollectionSetterParamNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php index ae441a62..c84154c3 100644 --- a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php @@ -12,10 +12,10 @@ use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\DefaultCollectionKeyRector\DefaultCollectionKeyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php index 5cad8a5a..928e5c9a 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php @@ -22,10 +22,10 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowArrayCollectionToCollectionRector\NarrowArrayCollectionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php index 34ae9fc8..00aad969 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php @@ -11,11 +11,11 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowParamUnionToCollectionRector\NarrowParamUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php index 03e0d2a4..68fe9519 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php @@ -15,11 +15,11 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowReturnUnionToCollectionRector\NarrowReturnUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php index 4b31c55d..e5ab5bb8 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php @@ -10,11 +10,11 @@ use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\MethodName; /** diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php index 26372325..825e3497 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php @@ -16,12 +16,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php index e718b25a..a066dd98 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php @@ -12,10 +12,10 @@ use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnArrayToNewArrayCollectionRector\ReturnArrayToNewArrayCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php index 571e589a..d0d9ea3f 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php @@ -14,10 +14,10 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; /** diff --git a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php index 05cf6bc8..a907ef05 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php @@ -9,11 +9,11 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\SetterCollectionResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteParamDocblockFromSetterToCollectionRector\CompleteParamDocblockFromSetterToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php index e75376de..d39cd007 100644 --- a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php @@ -12,8 +12,6 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\CodeQuality\Enum\CollectionMapping; use Rector\Doctrine\NodeAnalyzer\AttributeFinder; use Rector\Doctrine\NodeAnalyzer\TargetEntityResolver; @@ -22,6 +20,8 @@ use Rector\Doctrine\TypeAnalyzer\CollectionVarTagValueNodeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; /** diff --git a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php index 1a356cca..16a3d098 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php @@ -10,14 +10,14 @@ use PHPStan\Type\Generic\GenericObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeAnalyzer\MethodUniqueReturnedPropertyResolver; use Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory; use Rector\Doctrine\TypeAnalyzer\CollectionTypeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; use Rector\VendorLocker\NodeVendorLocker\ClassMethodReturnTypeOverrideGuard; diff --git a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php index a98cd910..d84e025d 100644 --- a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php +++ b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php @@ -6,8 +6,6 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Class_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\NodeFactory\ArrayCollectionAssignFactory; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionPropertyDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; @@ -15,6 +13,8 @@ use Rector\NodeManipulator\ClassDependencyManipulator; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\TypeDeclaration\AlreadyAssignDetector\ConstructorAssignDetector; /** diff --git a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php index d1122c1f..5bf02ab0 100644 --- a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php @@ -9,12 +9,12 @@ use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\Class_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\InitializedArrayCollectionPropertyResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\RemoveNullFromInstantiatedArrayCollectionPropertyRector\RemoveNullFromInstantiatedArrayCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php index 309e46cb..b2c78e86 100644 --- a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php +++ b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\Empty_; use PhpParser\Node\Expr\MethodCall; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php index e3de272f..03fe5169 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\NodeVisitor; use PHPUnit\Framework\Assert; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\Enum\PHPUnitClassName; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveAssertNotNullOnCollectionRector\RemoveAssertNotNullOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php index dbcb9d43..94ff8fdf 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php @@ -8,10 +8,10 @@ use PhpParser\Node\Expr\AssignOp\Coalesce; use PhpParser\Node\Stmt\Expression; use PhpParser\NodeVisitorAbstract; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveCoalesceAssignOnCollectionRector\RemoveCoalesceAssignOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php index 42e22c53..dbc16b41 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMapOnCollectionToArrayRector\ArrayMapOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php index ee884391..70f5fe0b 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; /** diff --git a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php index 8246dca3..34c3f130 100644 --- a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\CurrentOnCollectionToArrayRector\CurrentOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php index d6dc8e21..19d38997 100644 --- a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php +++ b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php index 50c73479..feb257d9 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php @@ -11,11 +11,11 @@ use PhpParser\Node\Expr\BinaryOp\Identical; use PhpParser\Node\Expr\BinaryOp\NotIdentical; use PhpParser\Node\Stmt\If_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfCollectionIdenticalToNullRector\RemoveIfCollectionIdenticalToNullRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php index 4ff6a063..15178a7a 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php @@ -18,14 +18,14 @@ use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitorAbstract; use PHPStan\Reflection\ClassReflection; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\TestClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\PHPStan\ScopeFetcher; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfInstanceofCollectionRector\RemoveIfInstanceofCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php index cc71e499..344834e7 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php @@ -12,10 +12,10 @@ use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitorAbstract; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIsArrayOnCollectionRector\RemoveIsArrayOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php index 5ff36b06..a51bbd94 100644 --- a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php @@ -12,11 +12,11 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\If_; use PhpParser\NodeVisitor; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveUselessIsEmptyAssignRector\RemoveUselessIsEmptyAssignRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php index 11c768f8..72b32f66 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertNullOnCollectionToAssertEmptyRector\AssertNullOnCollectionToAssertEmptyRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php index c39f4950..3f4771f3 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php @@ -9,11 +9,11 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertSameCountOnCollectionToAssertCountRector\AssertSameCountOnCollectionToAssertCountRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php index 0f2498fb..2d5af7e7 100644 --- a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php +++ b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php @@ -12,11 +12,11 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Name\FullyQualified; use PHPStan\Type\ObjectType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionParamCallDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\SetArrayToNewCollectionRector\SetArrayToNewCollectionRectorTest diff --git a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php index b0a63408..11a0f746 100644 --- a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php +++ b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php @@ -7,11 +7,11 @@ use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\New_; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\New_\RemoveNewArrayCollectionWrapRector\RemoveNewArrayCollectionWrapRectorTest diff --git a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php index 36fa8b11..7704bcaa 100644 --- a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php +++ b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php @@ -7,10 +7,10 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\NullsafeMethodCall; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\NullsafeMethodCall\RemoveNullsafeOnCollectionRector\RemoveNullsafeOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php index d1856a8e..4da8653f 100644 --- a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php @@ -15,12 +15,12 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\NarrowPropertyUnionToCollectionRector\NarrowPropertyUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php index f2fce3de..5d337ac9 100644 --- a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php +++ b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php @@ -9,13 +9,13 @@ use PHPStan\Type\MixedType; use PHPStan\Type\Type; use PHPStan\Type\UnionType; -use Rector\Doc\CodeSample\CodeSample; -use Rector\Doc\RuleDefinition; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\NodeManipulator\ToManyRelationPropertyTypeResolver; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface;