From 12e0a93a3f6c759c8e048a233d0231538bd6addc Mon Sep 17 00:00:00 2001 From: Nadar Date: Wed, 4 Sep 2024 06:29:38 +0000 Subject: [PATCH] Update Debug.php to properly handle output as a string --- src/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debug.php b/src/Debug.php index 6e05911..ce5ea76 100644 --- a/src/Debug.php +++ b/src/Debug.php @@ -103,7 +103,7 @@ public function getLinesTable(array $lines) $_lines[] = [ $line->getIndex(), $line->getInput(), - htmlentities($line->output, ENT_QUOTES), + htmlentities((string) $line->output, ENT_QUOTES), htmlentities($line->renderPrepend(), ENT_QUOTES), implode(", ", $line->getDebugInfo()), var_export($line->getAttributes(), true),