[Console] Fix console tests by adding the missing condition
This commit is contained in:
parent
b4e0a45acf
commit
57f8129598
@ -78,6 +78,6 @@ final class ConsoleErrorEvent extends ConsoleEvent
|
||||
*/
|
||||
public function getExitCode()
|
||||
{
|
||||
return null !== $this->exitCode ? $this->exitCode : (is_int($this->error->getCode()) ? $this->error->getCode() : 1);
|
||||
return null !== $this->exitCode ? $this->exitCode : (is_int($this->error->getCode()) && 0 !== $this->error->getCode() ? $this->error->getCode() : 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user