We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
profile
2 parents f75ebd3 + 4e78c6e commit 6d6bd2bCopy full SHA for 6d6bd2b
EventListener/ConsoleProfilerListener.php
@@ -59,7 +59,8 @@ public static function getSubscribedEvents(): array
59
60
public function initialize(ConsoleCommandEvent $event): void
61
{
62
- if (!$event->getInput()->getOption('profile')) {
+ $input = $event->getInput();
63
+ if (!$input->hasOption('profile') || !$input->getOption('profile')) {
64
$this->profiler->disable();
65
66
return;
0 commit comments