event-dispatcher icon indicating copy to clipboard operation
event-dispatcher copied to clipboard

PSR-14 event dispatcher

Results 4 event-dispatcher issues
Sort by recently updated
recently updated
newest added

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...

dependencies
php

On add listener to `ListenerCollection`: • `static fn(string $event) => null;` → must throw exception • `static fn(MyEvent $event) => null;` → success added In this [test](https://github.com/yiisoft/event-dispatcher/blob/91cb7fcfede9d54991512762b5ca50febd5e189d/tests/common/Provider/ListenerCollectionTest.php#L25) should throw exception.

It's better to rename the `ListenerCollection::add` method to `ListenerCollection::withListener` because it's not clear that it's immutable

status:ready for adoption