Skip to content

Commit 2be80e7

Browse files
authored
Always provide htmlentities with a string, for PHP8.1 deprecation purposes (php-debugbar#503)
1 parent 1386fe5 commit 2be80e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DebugBar/DataCollector/PDO/TracedStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function getParameters() : array
156156
{
157157
$params = [];
158158
foreach ($this->parameters as $name => $param) {
159-
$params[$name] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
159+
$params[$name] = htmlentities($param?:"", ENT_QUOTES, 'UTF-8', false);
160160
}
161161
return $params;
162162
}

0 commit comments

Comments
 (0)