Revert "[Console] ensure exit code between 0-254"
This reverts commit 6b9180a23d
.
This commit is contained in:
parent
82e555263f
commit
84867b78f8
@ -126,9 +126,11 @@ class Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->autoExit) {
|
if ($this->autoExit) {
|
||||||
// ensure exit code is between 0-254 (255 is reserved by PHP and should not be used)
|
if ($statusCode > 255) {
|
||||||
|
$statusCode = 255;
|
||||||
|
}
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
exit(max(0, min(254, $statusCode)));
|
exit($statusCode);
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user