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 db7654d
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 21 deletions.
5 changes: 0 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ parameters:
property: 99

ignoreErrors:
-
message: '#Generator expects value type (.*?) given#'
paths:
- tests/Rules

# needless generics
- '#Class Symplify\\PHPStanRules\\(.*?)Rule implements generic interface PHPStan\\Rules\\Rule but does not specify its types\: TNodeType#'

Expand Down
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 db7654d

Please sign in to comment.