Skip to content

Commit

Permalink
fix: TypeError
Browse files Browse the repository at this point in the history
TypeError: str_contains(): Argument #1 ($haystack) must be of type string, null given
  • Loading branch information
kenjis committed Apr 7, 2024
1 parent 3f6383a commit f2483dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Debug/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
. $kintScript
. PHP_EOL;

if (str_contains($response->getBody(), '<head>')) {
if (str_contains((string) $response->getBody(), '<head>')) {
$response->setBody(
preg_replace(
'/<head>/',
Expand Down

0 comments on commit f2483dc

Please sign in to comment.