HandlerList: added missing class-string type for constructor

This commit is contained in:
Dylan K. Taylor
2022-12-19 16:26:36 +00:00
parent 1305fd5fb2
commit 97ef209c5f

View File

@ -31,6 +31,10 @@ class HandlerList{
/** @var RegisteredListener[][] */
private array $handlerSlots = [];
/**
* @phpstan-template TEvent of Event
* @phpstan-param class-string<TEvent> $class
*/
public function __construct(
private string $class,
private ?HandlerList $parentList