Skip to content

Commit

Permalink
Make data providers static (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Dec 9, 2023
1 parent e2a1e85 commit 12be248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -25,7 +25,7 @@
"phpbench/phpbench": "^0.16 || ^1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-phpunit": "^1",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6",
"vimeo/psalm": "^4.30 || ^5.4"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php
Expand Up @@ -123,7 +123,7 @@ class $className {}
* @return string[][]
* @phpstan-return list<array{class-string}>
*/
public function getInstantiableClasses(): array
public static function getInstantiableClasses(): array
{
return [
[stdClass::class],
Expand Down Expand Up @@ -152,7 +152,7 @@ public function getInstantiableClasses(): array
*
* @psalm-return Generator<string, array{string}>
*/
public function getInvalidClassNames(): Generator
public static function getInvalidClassNames(): Generator
{
yield 'invalid string' => [self::class . str_replace('.', '', uniqid('', true))];
yield 'interface' => [InstantiatorInterface::class];
Expand Down

0 comments on commit 12be248

Please sign in to comment.