Skip to content

Commit

Permalink
Fix missing profile option for console commands
Browse files Browse the repository at this point in the history
Fixes #52433
  • Loading branch information
keulinho committed Nov 3, 2023
1 parent 8a69f67 commit 0e0848b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public static function getSubscribedEvents(): array

public function initialize(ConsoleCommandEvent $event): void
{
if (!$event->getInput()->getOption('profile')) {
$input = $event->getInput();
if (!$input->hasOption('profile') || !$input->getOption('profile')) {
$this->profiler->disable();

return;
Expand Down

0 comments on commit 0e0848b

Please sign in to comment.