Skip to content

Commit

Permalink
Make data providers static
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed May 21, 2024
1 parent 378f275 commit 9b0034f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Persistence/Mapping/ColocatedMappingDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testGetAllClassNames(string $path): void
}

/** @return Generator<string, array{string}> */
public function pathProvider(): Generator
public static function pathProvider(): Generator
{
yield 'straigthforward path' => [__DIR__ . '/_files/colocated'];
yield 'winding path' => [__DIR__ . '/../Mapping/_files/colocated'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Persistence/Mapping/SymfonyFileLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testInvalidCustomNamespaceSeparator(): void
}

/** @return array<string, array{string, string}> */
public function customNamespaceSeparatorProvider(): array
public static function customNamespaceSeparatorProvider(): array
{
return [
'directory separator' => [DIRECTORY_SEPARATOR, '/_custom_ns/dir'],
Expand Down Expand Up @@ -122,7 +122,7 @@ public function testGetClassNamesWithCustomNsSeparator(string $separator, string
}

/** @return array<array{string, string, array<string, string>}> */
public function customNamespaceLookupQueryProvider(): array
public static function customNamespaceLookupQueryProvider(): array
{
return [
'directory separator' => [
Expand Down

0 comments on commit 9b0034f

Please sign in to comment.