From f499788a0831ca904b3243c69957853041b00761 Mon Sep 17 00:00:00 2001 From: Yohann Genre <5088279+Yokann@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:06:11 +0200 Subject: [PATCH] fix: review to squash --- src/Listener/ConsoleListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Listener/ConsoleListener.php b/src/Listener/ConsoleListener.php index ac89a5d..d4ac966 100644 --- a/src/Listener/ConsoleListener.php +++ b/src/Listener/ConsoleListener.php @@ -21,9 +21,9 @@ class ConsoleListener /** * Time when command started * - * @var float + * @var ?float */ - protected $startTime; + protected $startTime = null; /** * Define event dispatch @@ -64,7 +64,7 @@ public function onException(BaseConsoleEvent $e) */ protected function dispatch(BaseConsoleEvent $e, $eventName) { - if (null !== $this->eventDispatcher) { + if (isset($this->eventDispatcher)) { $class = str_replace( 'Symfony\Component\Console\Event', 'M6Web\Bundle\StatsdBundle\Event',