Skip to content

Commit

Permalink
Add types to public and protected properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 27, 2023
1 parent 1953391 commit c459b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Debug/TraceableEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
*/
class TraceableEventDispatcher implements EventDispatcherInterface, ResetInterface
{
protected $logger;
protected $stopwatch;
protected ?LoggerInterface $logger;
protected Stopwatch $stopwatch;

/**
* @var \SplObjectStorage<WrappedListener, array{string, string}>|null
Expand Down
4 changes: 2 additions & 2 deletions GenericEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*/
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
{
protected $subject;
protected $arguments;
protected mixed $subject;
protected array $arguments;

/**
* Encapsulate an event with $subject and $args.
Expand Down

0 comments on commit c459b40

Please sign in to comment.