From c459b40ffe67c49af6fd392aac374c9edf8a027e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 21 Jul 2023 15:36:26 +0200 Subject: [PATCH] Add types to public and protected properties --- Debug/TraceableEventDispatcher.php | 4 ++-- GenericEvent.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Debug/TraceableEventDispatcher.php b/Debug/TraceableEventDispatcher.php index 52e844b..1163e07 100644 --- a/Debug/TraceableEventDispatcher.php +++ b/Debug/TraceableEventDispatcher.php @@ -30,8 +30,8 @@ */ class TraceableEventDispatcher implements EventDispatcherInterface, ResetInterface { - protected $logger; - protected $stopwatch; + protected ?LoggerInterface $logger; + protected Stopwatch $stopwatch; /** * @var \SplObjectStorage|null diff --git a/GenericEvent.php b/GenericEvent.php index 68a2030..b14faa5 100644 --- a/GenericEvent.php +++ b/GenericEvent.php @@ -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.