From 0bb8d88c1facd1e907bb73bc981cc10df3ab3e3b Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 7 Feb 2023 13:16:30 +0000 Subject: [PATCH] don't die when stack trace contains bool --- core/polyfills.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/polyfills.php b/core/polyfills.php index 2e88b7c8..1dfee641 100644 --- a/core/polyfills.php +++ b/core/polyfills.php @@ -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(); }