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