Skip to content

Commit

Permalink
Merge pull request #6 from chocofamilyme/job.profiling
Browse files Browse the repository at this point in the history
Fix error when empty command name
  • Loading branch information
Vadim89 authored Jan 12, 2021
2 parents d8edb82 + 468b943 commit a141964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/ProfileStartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public function __construct(ProfilerInterface $profiler)
/** @psalm-suppress UndefinedClass */
public function handle(CommandStarting $event)
{
$this->profiler->setScriptName($event->command);
$this->profiler->setScriptName($event->command ?? 'list');
}
}

0 comments on commit a141964

Please sign in to comment.