Skip to content

Commit

Permalink
fix rector
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti authored Sep 20, 2024
1 parent 858190b commit 75ff93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/EventListener/ConsoleCommandEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Kanti\ServerTiming\EventListener;

use Exception;
use Kanti\ServerTiming\Dto\ScriptResult;
use Kanti\ServerTiming\Utility\TimingUtility;
use Symfony\Component\Console\Event\ConsoleCommandEvent;
Expand All @@ -24,7 +25,7 @@ public function stop(ConsoleTerminateEvent $event): void
{
$stopWatch = array_pop($this->stopWatches);
if ($stopWatch === null) {
throw new \Exception('No stopWatch found, did you start the command already?');
throw new Exception('No stopWatch found, did you start the command already?');
}
$stopWatch->stop();
if (!$this->stopWatches) {
Expand Down

0 comments on commit 75ff93b

Please sign in to comment.