diff --git a/system/Debug/Toolbar.php b/system/Debug/Toolbar.php index e38cfc27409b..115016225062 100644 --- a/system/Debug/Toolbar.php +++ b/system/Debug/Toolbar.php @@ -434,7 +434,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r . $kintScript . PHP_EOL; - if (str_contains($response->getBody(), '')) { + if (str_contains((string) $response->getBody(), '')) { $response->setBody( preg_replace( '//',