diff --git a/src/Rules/ForbiddenParamTypeRemovalRule.php b/src/Rules/NoParamTypeRemovalRule.php similarity index 97% rename from src/Rules/ForbiddenParamTypeRemovalRule.php rename to src/Rules/NoParamTypeRemovalRule.php index ff939ec5..1bb14ad9 100644 --- a/src/Rules/ForbiddenParamTypeRemovalRule.php +++ b/src/Rules/NoParamTypeRemovalRule.php @@ -17,7 +17,7 @@ * @see \Rector\TypePerfect\Tests\Rules\ForbiddenParamTypeRemovalRule\ForbiddenParamTypeRemovalRuleTest * @implements Rule */ -final readonly class ForbiddenParamTypeRemovalRule implements Rule +final readonly class NoParamTypeRemovalRule implements Rule { /** * @var string diff --git a/tests/Rules/ForbiddenParamTypeRemovalRule/Fixture/RemoveParentType.php b/tests/Rules/ForbiddenParamTypeRemovalRule/Fixture/RemoveParentType.php deleted file mode 100644 index ebb25795..00000000 --- a/tests/Rules/ForbiddenParamTypeRemovalRule/Fixture/RemoveParentType.php +++ /dev/null @@ -1,14 +0,0 @@ -getByType(ForbiddenParamTypeRemovalRule::class); + return self::getContainer()->getByType(NoParamTypeRemovalRule::class); } } diff --git a/tests/Rules/ForbiddenParamTypeRemovalRule/Source/NoTypeInterface.php b/tests/Rules/NoParamTypeRemovalRule/Source/NoTypeInterface.php similarity index 55% rename from tests/Rules/ForbiddenParamTypeRemovalRule/Source/NoTypeInterface.php rename to tests/Rules/NoParamTypeRemovalRule/Source/NoTypeInterface.php index adabceaa..333fbd22 100644 --- a/tests/Rules/ForbiddenParamTypeRemovalRule/Source/NoTypeInterface.php +++ b/tests/Rules/NoParamTypeRemovalRule/Source/NoTypeInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\TypePerfect\Tests\Rules\ForbiddenParamTypeRemovalRule\Source; +namespace Rector\TypePerfect\Tests\Rules\NoParamTypeRemovalRule\Source; interface NoTypeInterface { diff --git a/tests/Rules/ForbiddenParamTypeRemovalRule/Source/PhpDocType.php b/tests/Rules/NoParamTypeRemovalRule/Source/PhpDocType.php similarity index 67% rename from tests/Rules/ForbiddenParamTypeRemovalRule/Source/PhpDocType.php rename to tests/Rules/NoParamTypeRemovalRule/Source/PhpDocType.php index 10963080..8be61686 100644 --- a/tests/Rules/ForbiddenParamTypeRemovalRule/Source/PhpDocType.php +++ b/tests/Rules/NoParamTypeRemovalRule/Source/PhpDocType.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\TypePerfect\Tests\Rules\ForbiddenParamTypeRemovalRule\Source; +namespace Rector\TypePerfect\Tests\Rules\NoParamTypeRemovalRule\Source; class PhpDocType { diff --git a/tests/Rules/NoParamTypeRemovalRule/Source/SomeNode.php b/tests/Rules/NoParamTypeRemovalRule/Source/SomeNode.php new file mode 100644 index 00000000..c8abdb34 --- /dev/null +++ b/tests/Rules/NoParamTypeRemovalRule/Source/SomeNode.php @@ -0,0 +1,10 @@ +