diff --git a/composer.json b/composer.json index 7bbd45a..74c127e 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php b/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php index 3e2a2c2..08e4f7c 100644 --- a/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php +++ b/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php @@ -123,7 +123,7 @@ class $className {} * @return string[][] * @phpstan-return list */ - public function getInstantiableClasses(): array + public static function getInstantiableClasses(): array { return [ [stdClass::class], @@ -152,7 +152,7 @@ public function getInstantiableClasses(): array * * @psalm-return Generator */ - public function getInvalidClassNames(): Generator + public static function getInvalidClassNames(): Generator { yield 'invalid string' => [self::class . str_replace('.', '', uniqid('', true))]; yield 'interface' => [InstantiatorInterface::class];