diff --git a/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php b/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php index c754299ae08fb..47ac68b688eda 100644 --- a/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php @@ -11,10 +11,6 @@ namespace Symfony\Component\Console\Event; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; - /** * Allows to do things before the command is executed. * diff --git a/src/Symfony/Component/Console/Event/ConsoleForExceptionEvent.php b/src/Symfony/Component/Console/Event/ConsoleForExceptionEvent.php index b67f99e7de14b..9746d8153a9a1 100644 --- a/src/Symfony/Component/Console/Event/ConsoleForExceptionEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleForExceptionEvent.php @@ -30,7 +30,7 @@ public function __construct(Command $command, InputInterface $input, OutputInter parent::__construct($command, $input, $output); $this->setException($exception); - $this->exitCode = $exitCode; + $this->exitCode = (int) $exitCode; } /** diff --git a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php index 9f80cb70a0dbf..7eeea60da4cc9 100644 --- a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php @@ -43,7 +43,7 @@ public function __construct(Command $command, InputInterface $input, OutputInter */ public function setExitCode($exitCode) { - $this->exitCode = $exitCode; + $this->exitCode = (int) $exitCode; } /**