From de0b51e031b0911ef59f28ae08e3e4c0340f7ad4 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 5 Oct 2025 08:44:59 +0700 Subject: [PATCH] Fix Source fixture file name on KnownMagicClassMethodTypeRector --- composer.json | 3 +-- .../Fixture/with_other_method_from_parent.php.inc | 8 ++++---- .../Source/ParentClassOtherMethod.php | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 3694a42b17b..032bceb95a7 100644 --- a/composer.json +++ b/composer.json @@ -90,8 +90,7 @@ "classmap": [ "stubs", "rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source", - "rules-tests/Renaming/Rector/Name/RenameClassRector/Source", - "rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source" + "rules-tests/Renaming/Rector/Name/RenameClassRector/Source" ], "files": [ "tests/debug_functions.php", diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Fixture/with_other_method_from_parent.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Fixture/with_other_method_from_parent.php.inc index 565999ee96b..a0bdafd5887 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Fixture/with_other_method_from_parent.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Fixture/with_other_method_from_parent.php.inc @@ -2,9 +2,9 @@ namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Fixture; -use Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source\ParentClassWithOtherMethod; +use Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source\ParentClassOtherMethod; -final class WithOtherMethodFromParent extends ParentClassWithOtherMethod +final class WithOtherMethodFromParent extends ParentClassOtherMethod { public function __invoke() { @@ -21,9 +21,9 @@ final class WithOtherMethodFromParent extends ParentClassWithOtherMethod namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Fixture; -use Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source\ParentClassWithOtherMethod; +use Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source\ParentClassOtherMethod; -final class WithOtherMethodFromParent extends ParentClassWithOtherMethod +final class WithOtherMethodFromParent extends ParentClassOtherMethod { public function __invoke() { diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source/ParentClassOtherMethod.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source/ParentClassOtherMethod.php index 1bd7bc18e19..3ad667c19e3 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source/ParentClassOtherMethod.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source/ParentClassOtherMethod.php @@ -2,7 +2,7 @@ namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\KnownMagicClassMethodTypeRector\Source; -abstract class ParentClassWithOtherMethod +abstract class ParentClassOtherMethod { public function __invoke() {