From f2483dcb94d5e4f3b0bb0c737084b46bdf521647 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 8 Apr 2024 08:20:36 +0900 Subject: [PATCH] fix: TypeError TypeError: str_contains(): Argument #1 ($haystack) must be of type string, null given --- system/Debug/Toolbar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( '//',