diff --git a/utils/phpstan-extensions/config/phpstan-extensions.neon b/utils/phpstan-extensions/config/phpstan-extensions.neon index 27ce597c667..5224aab0baa 100644 --- a/utils/phpstan-extensions/config/phpstan-extensions.neon +++ b/utils/phpstan-extensions/config/phpstan-extensions.neon @@ -4,11 +4,11 @@ services: tags: [phpstan.rules.rule] - - class: Rector\PHPStanExtensions\Rule\ClassMethod\PreventParentMethodVisibilityOverrideRule + class: Rector\PHPStanExtensions\Rule\PreventParentMethodVisibilityOverrideRule tags: [phpstan.rules.rule] - - class: Rector\PHPStanExtensions\Rule\ClassLike\KeepRectorNamespaceForRectorRule + class: Rector\PHPStanExtensions\Rule\KeepRectorNamespaceForRectorRule tags: [phpstan.rules.rule] - Rector\PHPStanExtensions\Utils\PHPStanValueResolver diff --git a/utils/phpstan-extensions/src/Rule/ClassLike/KeepRectorNamespaceForRectorRule.php b/utils/phpstan-extensions/src/Rule/KeepRectorNamespaceForRectorRule.php similarity index 91% rename from utils/phpstan-extensions/src/Rule/ClassLike/KeepRectorNamespaceForRectorRule.php rename to utils/phpstan-extensions/src/Rule/KeepRectorNamespaceForRectorRule.php index 91b3f2428b3..1635ed6e4b4 100644 --- a/utils/phpstan-extensions/src/Rule/ClassLike/KeepRectorNamespaceForRectorRule.php +++ b/utils/phpstan-extensions/src/Rule/KeepRectorNamespaceForRectorRule.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\PHPStanExtensions\Rule\ClassLike; +namespace Rector\PHPStanExtensions\Rule; use Nette\Utils\Strings; use PhpParser\Node; @@ -11,7 +11,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Rules\Rule; /** - * @see \Rector\PHPStanExtensions\Tests\Rule\ClassLike\KeepRectorNamespaceForRectorRuleTest + * @see \Rector\PHPStanExtensions\Tests\Rule\KeepRectorNamespaceForRectorRule\KeepRectorNamespaceForRectorRuleTest */ final class KeepRectorNamespaceForRectorRule implements Rule { diff --git a/utils/phpstan-extensions/src/Rule/ClassMethod/PreventParentMethodVisibilityOverrideRule.php b/utils/phpstan-extensions/src/Rule/PreventParentMethodVisibilityOverrideRule.php similarity index 93% rename from utils/phpstan-extensions/src/Rule/ClassMethod/PreventParentMethodVisibilityOverrideRule.php rename to utils/phpstan-extensions/src/Rule/PreventParentMethodVisibilityOverrideRule.php index d3a9bf8a8ad..250d1e7fd6b 100644 --- a/utils/phpstan-extensions/src/Rule/ClassMethod/PreventParentMethodVisibilityOverrideRule.php +++ b/utils/phpstan-extensions/src/Rule/PreventParentMethodVisibilityOverrideRule.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\PHPStanExtensions\Rule\ClassMethod; +namespace Rector\PHPStanExtensions\Rule; use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; @@ -12,7 +12,7 @@ use Rector\Core\Exception\NotImplementedException; use ReflectionMethod; /** - * @see \Rector\PHPStanExtensions\Tests\Rule\ClassMethod\PreventParentMethodVisibilityOverrideRuleTest + * @see \Rector\PHPStanExtensions\Tests\Rule\PreventParentMethodVisibilityOverrideRule\PreventParentMethodVisibilityOverrideRuleTest */ final class PreventParentMethodVisibilityOverrideRule implements Rule { diff --git a/utils/phpstan-extensions/tests/Rule/ClassLike/Source/Rector/ClassInCorrectNamespaceRector.php b/utils/phpstan-extensions/tests/Rule/ClassLike/Source/Rector/ClassInCorrectNamespaceRector.php deleted file mode 100644 index a035df8f01b..00000000000 --- a/utils/phpstan-extensions/tests/Rule/ClassLike/Source/Rector/ClassInCorrectNamespaceRector.php +++ /dev/null @@ -1,10 +0,0 @@ -