improve typehint of keys before and after inside all events in the Dispatcher $filters property

dispatcher-rework
fadrian06 5 days ago
parent ae735c1845
commit 8a4818cf87

@ -33,9 +33,10 @@ class Dispatcher
protected array $events = []; protected array $events = [];
/** /**
* Method filters. * @var array<string, array{
* * before?: (callable(mixed[] &$params, mixed &$output): (void|false))[],
* @var array<string, array<'before'|'after', array<int, callable(array<int, mixed> &$params, mixed &$output): (void|false)>>> * after?: (callable(mixed[] &$params, mixed &$output): (void|false))[],
* }>
*/ */
protected array $filters = []; protected array $filters = [];

Loading…
Cancel
Save