private exceptionToExitCode ( integer $code ) : integer | ||
$code | integer | The exception code. |
return | integer | The exit code. |
private function exceptionToExitCode($code)
{
if (!is_numeric($code)) {
return 1;
}
return min(max((int) $code, 1), 255);
}