[Console] fixed status code when it is > 255
This commit is contained in:
parent
c39635680f
commit
44f54c2578
@ -123,6 +123,9 @@ class Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->autoExit) {
|
if ($this->autoExit) {
|
||||||
|
if ($statusCode > 255) {
|
||||||
|
$statusCode = 255;
|
||||||
|
}
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
exit($statusCode);
|
exit($statusCode);
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
|
Reference in New Issue
Block a user