Skip to content

Commit

Permalink
Use static methods inside data providers
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Dec 22, 2022
1 parent 7872a66 commit 40c0863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/GitignoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testToRegex(array $gitignoreLines, array $matchingCases, array $
}
}

public function provider(): array
public static function provider(): array
{
$cases = [
[
Expand Down Expand Up @@ -394,7 +394,7 @@ public function provider(): array

public function providerExtended(): array
{
$basicCases = $this->provider();
$basicCases = self::provider();

$cases = [];
foreach ($basicCases as $case) {
Expand Down
2 changes: 1 addition & 1 deletion Tests/Iterator/SizeRangeFilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getAcceptData()
];

return [
[[new NumberComparator('< 1K'), new NumberComparator('> 0.5K')], $this->toAbsolute($lessThan1KGreaterThan05K)],
[[new NumberComparator('< 1K'), new NumberComparator('> 0.5K')], self::toAbsolute($lessThan1KGreaterThan05K)],
];
}
}
Expand Down

0 comments on commit 40c0863

Please sign in to comment.