Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 23, 2024
1 parent f8fe69f commit d72962c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/Rules/NoInlineStringRegexRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tests/Rules/ForbiddenNodeRule/ForbiddenNodeRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}

/**
* @return \Iterator<array<int, array<int[]|string[]>>|string[]>
*/
public static function provideData(): Iterator
{
$errorMessage = sprintf(ForbiddenNodeRule::ERROR_MESSAGE, 'empty($value)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}

/**
* @return \Iterator<array<int, array<int[]|string[]>>|string[]>
*/
public static function provideData(): Iterator
{
yield [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}

/**
* @return Iterator<array<string|int[]|string[]>>
*/
public static function provideData(): Iterator
{
$errorMessage = sprintf(PreventParentMethodVisibilityOverrideRule::ERROR_MESSAGE, 'run', 'protected');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}

/**
* @return Iterator<array<string|int[]|string[]>>
*/
public static function provideData(): Iterator
{
$errorMessage = sprintf(RegexSuffixInRegexConstantRule::ERROR_MESSAGE, 'SOME_NAME');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function testRule(string $filePath, array $expectedErrorMessagesWithLines
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}

/**
* @return Iterator<int, array<int, array<int, int|string>|string>>
*/
public static function provideData(): Iterator
{
$errorMessage = sprintf(UppercaseConstantRule::ERROR_MESSAGE, 'SMall');
Expand Down

0 comments on commit d72962c

Please sign in to comment.