Skip to content

Commit

Permalink
Merge pull request #391 from Chris53897/feature/make-test-dataprovide…
Browse files Browse the repository at this point in the history
…rs-static

tests: make DataProviders static in preparation for PHPUnit 10
  • Loading branch information
stof authored Mar 1, 2024
2 parents da1c568 + f9de2cd commit 6f29990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testMatching(?string $route, array $parameters, array $queryPara
/**
* @return array<string, array<int, mixed>>
*/
public function provideData(): array
public static function provideData(): array
{
return [
'no request route' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Knp/Menu/Tests/Matcher/Voter/UriVoterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testMatching(?string $uri, ?string $itemUri, ?bool $expected): v
/**
* @return array<string, array<int, string|bool|null>>
*/
public function provideData(): array
public static function provideData(): array
{
return [
'no uri' => [null, 'foo', null],
Expand Down

0 comments on commit 6f29990

Please sign in to comment.