diff --git a/tests/Persistence/Mapping/ColocatedMappingDriverTest.php b/tests/Persistence/Mapping/ColocatedMappingDriverTest.php index af5c4b1f..cbb4fea6 100644 --- a/tests/Persistence/Mapping/ColocatedMappingDriverTest.php +++ b/tests/Persistence/Mapping/ColocatedMappingDriverTest.php @@ -65,7 +65,7 @@ public function testGetAllClassNames(string $path): void } /** @return Generator */ - public function pathProvider(): Generator + public static function pathProvider(): Generator { yield 'straigthforward path' => [__DIR__ . '/_files/colocated']; yield 'winding path' => [__DIR__ . '/../Mapping/_files/colocated']; diff --git a/tests/Persistence/Mapping/SymfonyFileLocatorTest.php b/tests/Persistence/Mapping/SymfonyFileLocatorTest.php index b93a8cb5..849c6d39 100644 --- a/tests/Persistence/Mapping/SymfonyFileLocatorTest.php +++ b/tests/Persistence/Mapping/SymfonyFileLocatorTest.php @@ -93,7 +93,7 @@ public function testInvalidCustomNamespaceSeparator(): void } /** @return array */ - public function customNamespaceSeparatorProvider(): array + public static function customNamespaceSeparatorProvider(): array { return [ 'directory separator' => [DIRECTORY_SEPARATOR, '/_custom_ns/dir'], @@ -122,7 +122,7 @@ public function testGetClassNamesWithCustomNsSeparator(string $separator, string } /** @return array}> */ - public function customNamespaceLookupQueryProvider(): array + public static function customNamespaceLookupQueryProvider(): array { return [ 'directory separator' => [