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.
1 parent 0259fc5 commit ca86e65Copy full SHA for ca86e65
src/Symfony/Component/Console/Event/ConsoleErrorEvent.php
@@ -53,6 +53,6 @@ public function setExitCode(int $exitCode): void
53
54
public function getExitCode(): int
55
{
56
- return null !== $this->exitCode ? $this->exitCode : ($this->error->getCode() ?: 1);
+ return null !== $this->exitCode ? $this->exitCode : (is_int($this->error->getCode()) ? $this->error->getCode() : 1);
57
}
58
0 commit comments