Fixed PHPUnit deprecation warnings

This commit is contained in:
Dylan K. Taylor
2023-06-04 14:00:26 +01:00
parent 7fef8f0ab6
commit f9818efff4
11 changed files with 33 additions and 33 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];