Skip to content

Commit

Permalink
improve phpstan typing
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Jan 3, 2023
1 parent c6d0265 commit e1ba7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Indicator/PhpUnitTestCaseIndicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function isPhpUnitClass(Tokens $tokens, int $index): bool
* we do it for bottom of file first, and then to the top of the file, so we
* mitigate risk of not visiting whole collcetion (final indices).
*
* @return iterable array of [int start, int end] indices from later to earlier classes
* @return iterable<array{0: int, 1: int}> array of [int start, int end] indices from later to earlier classes
*/
public function findPhpUnitClasses(Tokens $tokens): iterable
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Indicator/PhpUnitTestCaseIndicatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testThrowsExceptionIfNotClass(): void
}

/**
* @param array<int,int> $expectedIndexes
* @param array<array{0: int, 1: int}> $expectedIndexes
*
* @dataProvider provideFindPhpUnitClassesCases
*/
Expand Down

0 comments on commit e1ba7e7

Please sign in to comment.