Skip to content

Commit

Permalink
fix: review to squash
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokann committed Aug 1, 2023
1 parent dd674d8 commit f499788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Listener/ConsoleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class ConsoleListener
/**
* Time when command started
*
* @var float
* @var ?float
*/
protected $startTime;
protected $startTime = null;

/**
* Define event dispatch
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit f499788

Please sign in to comment.