don't die when stack trace contains bool
This commit is contained in:
parent
6d301b5ec4
commit
0bb8d88c1f
1 changed files with 3 additions and 0 deletions
|
@ -811,6 +811,9 @@ function stringer($s): string
|
|||
if (is_numeric($s)) {
|
||||
return "$s";
|
||||
}
|
||||
if (is_bool($s)) {
|
||||
return $s ? "true" : "false";
|
||||
}
|
||||
if (method_exists($s, "__toString")) {
|
||||
return $s->__toString();
|
||||
}
|
||||
|
|
Reference in a new issue