Skip to content

Commit 39b14b5

Browse files
committed
Add generic types to traversable implementations
1 parent ac2f062 commit 39b14b5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Debug/TraceableEventDispatcher.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class TraceableEventDispatcher implements EventDispatcherInterface, ResetInterfa
3232
protected $logger;
3333
protected $stopwatch;
3434

35+
/**
36+
* @var \SplObjectStorage<WrappedListener, array{string, string}>
37+
*/
3538
private $callStack;
3639
private $dispatcher;
3740
private $wrappedListeners;

GenericEvent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* Encapsulates events thus decoupling the observer from the subject they encapsulate.
2020
*
2121
* @author Drak <[email protected]>
22+
*
23+
* @implements \ArrayAccess<string, mixed>
24+
* @implements \IteratorAggregate<string, mixed>
2225
*/
2326
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
2427
{

0 commit comments

Comments
 (0)