Skip to content

Commit c459b40

Browse files
Add types to public and protected properties
1 parent 1953391 commit c459b40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Debug/TraceableEventDispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
*/
3131
class TraceableEventDispatcher implements EventDispatcherInterface, ResetInterface
3232
{
33-
protected $logger;
34-
protected $stopwatch;
33+
protected ?LoggerInterface $logger;
34+
protected Stopwatch $stopwatch;
3535

3636
/**
3737
* @var \SplObjectStorage<WrappedListener, array{string, string}>|null

GenericEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
2727
{
28-
protected $subject;
29-
protected $arguments;
28+
protected mixed $subject;
29+
protected array $arguments;
3030

3131
/**
3232
* Encapsulate an event with $subject and $args.

0 commit comments

Comments
 (0)