Skip to content

Commit b8209e7

Browse files
author
James Halsall
committed
Fix code style, add TODO
1 parent 1cb06e5 commit b8209e7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Symfony/Component/Console/EventListener/ExceptionListener.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ public function onKernelTerminate(ConsoleTerminateEvent $event)
6262
return;
6363
}
6464

65-
$message = sprintf(
66-
'Command `%s` exited with status code %d',
67-
implode(' ', $_SERVER['argv']),
68-
$exitCode
69-
);
65+
// TODO: replace $_SERVER global usage with data from Input
66+
$message = sprintf('Command `%s` exited with status code %d', implode(' ', $_SERVER['argv']), $exitCode);
7067

7168
$this->logger->error($message);
7269
}

0 commit comments

Comments
 (0)