Fixed PHPUnit deprecation warnings

This commit is contained in:
Dylan K. Taylor
2023-06-04 14:00:26 +01:00
parent 2538880408
commit 92c45dd7e1
10 changed files with 15 additions and 15 deletions

View File

@ -49,7 +49,7 @@ class HandlerListManagerTest extends TestCase{
* @return \Generator|mixed[][]
* @phpstan-return \Generator<int, array{\ReflectionClass<Event>, bool, string}, void, void>
*/
public function isValidClassProvider() : \Generator{
public static function isValidClassProvider() : \Generator{
yield [new \ReflectionClass(Event::class), false, "event base should not be handleable"];
yield [new \ReflectionClass(TestConcreteEvent::class), true, ""];
yield [new \ReflectionClass(TestAbstractEvent::class), false, "abstract event cannot be handled"];
@ -69,7 +69,7 @@ class HandlerListManagerTest extends TestCase{
* @return \Generator|\ReflectionClass[][]
* @phpstan-return \Generator<int, array{\ReflectionClass<Event>, \ReflectionClass<Event>|null}, void, void>
*/
public function resolveParentClassProvider() : \Generator{
public static function resolveParentClassProvider() : \Generator{
yield [new \ReflectionClass(TestConcreteExtendsAllowHandleEvent::class), new \ReflectionClass(TestAbstractAllowHandleEvent::class)];
yield [new \ReflectionClass(TestConcreteEvent::class), null];
yield [new \ReflectionClass(TestConcreteExtendsAbstractEvent::class), null];