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 b4e0a45 commit 57f8129Copy full SHA for 57f8129
src/Symfony/Component/Console/Event/ConsoleErrorEvent.php
@@ -78,6 +78,6 @@ public function setExitCode($exitCode)
78
*/
79
public function getExitCode()
80
{
81
- 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);
82
}
83
0 commit comments