The doc comment array<class-string, callable[]> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, callable[]>.
The doc comment array<class-string, callable[]> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, callable[]>.
Loading history...
26
*/
27
public function __construct(array $listeners)
28
{
29
$this->listeners = $listeners;
30
}
31
32
/**
33
* @inheritDoc
34
*
35
* @return iterable<callable(object):void>
36
*/
37
public function getListenersForEvent(object $event): iterable
38
{
39
foreach ($this->listeners as $class => $listeners) {