don't die when stack trace contains bool

This commit is contained in:
Shish 2023-02-07 13:16:30 +00:00
parent 6d301b5ec4
commit 0bb8d88c1f

View file

@ -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();
}