diff --git a/tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php b/tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php index 2389c18d..970bd123 100644 --- a/tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php +++ b/tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php @@ -75,7 +75,7 @@ public function testMatching(?string $route, array $parameters, array $queryPara /** * @return array> */ - public function provideData(): array + public static function provideData(): array { return [ 'no request route' => [ diff --git a/tests/Knp/Menu/Tests/Matcher/Voter/UriVoterTest.php b/tests/Knp/Menu/Tests/Matcher/Voter/UriVoterTest.php index 564e4e42..21ea24ed 100644 --- a/tests/Knp/Menu/Tests/Matcher/Voter/UriVoterTest.php +++ b/tests/Knp/Menu/Tests/Matcher/Voter/UriVoterTest.php @@ -26,7 +26,7 @@ public function testMatching(?string $uri, ?string $itemUri, ?bool $expected): v /** * @return array> */ - public function provideData(): array + public static function provideData(): array { return [ 'no uri' => [null, 'foo', null],