From 2c7c42a53f0bd83779548687faa4561f776a95f5 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 23 Aug 2024 10:54:52 +0200 Subject: [PATCH] cleanup --- src/Rules/NoInlineStringRegexRule.php | 2 +- tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php | 3 --- .../ForbiddenStaticClassConstFetchRuleTest.php | 3 --- .../PreventParentMethodVisibilityOverrideRuleTest.php | 3 --- .../RegexSuffixInRegexConstantRuleTest.php | 3 --- 5 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/Rules/NoInlineStringRegexRule.php b/src/Rules/NoInlineStringRegexRule.php index cc51e5df..32e75cd8 100644 --- a/src/Rules/NoInlineStringRegexRule.php +++ b/src/Rules/NoInlineStringRegexRule.php @@ -43,7 +43,7 @@ public function getNodeType(): string } /** - * @param Node\Expr\CallLike $node + * @param CallLike $node * @return mixed[]|string[] */ public function processNode(Node $node, Scope $scope): array diff --git a/tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php b/tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php index 11ea8c28..e67d3db6 100644 --- a/tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php +++ b/tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines $this->analyse([$filePath], $expectedErrorMessagesWithLines); } - /** - * @return \Iterator>|string[]> - */ public static function provideData(): Iterator { $errorMessage = sprintf(ForbiddenNodeRule::ERROR_MESSAGE, 'empty($value)'); diff --git a/tests/Rules/ForbiddenStaticClassConstFetchRule/ForbiddenStaticClassConstFetchRuleTest.php b/tests/Rules/ForbiddenStaticClassConstFetchRule/ForbiddenStaticClassConstFetchRuleTest.php index 239fe6d0..14896d0b 100644 --- a/tests/Rules/ForbiddenStaticClassConstFetchRule/ForbiddenStaticClassConstFetchRuleTest.php +++ b/tests/Rules/ForbiddenStaticClassConstFetchRule/ForbiddenStaticClassConstFetchRuleTest.php @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines $this->analyse([$filePath], $expectedErrorMessagesWithLines); } - /** - * @return \Iterator>|string[]> - */ public static function provideData(): Iterator { yield [ diff --git a/tests/Rules/PreventParentMethodVisibilityOverrideRule/PreventParentMethodVisibilityOverrideRuleTest.php b/tests/Rules/PreventParentMethodVisibilityOverrideRule/PreventParentMethodVisibilityOverrideRuleTest.php index 6ac7461d..f41157b5 100644 --- a/tests/Rules/PreventParentMethodVisibilityOverrideRule/PreventParentMethodVisibilityOverrideRuleTest.php +++ b/tests/Rules/PreventParentMethodVisibilityOverrideRule/PreventParentMethodVisibilityOverrideRuleTest.php @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines $this->analyse([$filePath], $expectedErrorMessagesWithLines); } - /** - * @return Iterator> - */ public static function provideData(): Iterator { $errorMessage = sprintf(PreventParentMethodVisibilityOverrideRule::ERROR_MESSAGE, 'run', 'protected'); diff --git a/tests/Rules/RegexSuffixInRegexConstantRule/RegexSuffixInRegexConstantRuleTest.php b/tests/Rules/RegexSuffixInRegexConstantRule/RegexSuffixInRegexConstantRuleTest.php index 8302e49f..acede067 100644 --- a/tests/Rules/RegexSuffixInRegexConstantRule/RegexSuffixInRegexConstantRuleTest.php +++ b/tests/Rules/RegexSuffixInRegexConstantRule/RegexSuffixInRegexConstantRuleTest.php @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines $this->analyse([$filePath], $expectedErrorMessagesWithLines); } - /** - * @return Iterator> - */ public static function provideData(): Iterator { $errorMessage = sprintf(RegexSuffixInRegexConstantRule::ERROR_MESSAGE, 'SOME_NAME');