php-debugbar
php-debugbar copied to clipboard
Always provide htmlentities with a string, for PHP8.1
In PHP8.1, htmlentities doesn't accept null as valid first argument; cast any equivalent-to-false into string before passing it to htmlentities.
Maybe better
-$params[$name] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
+$params[$name] = htmlentities((string) $param, ENT_QUOTES, 'UTF-8', false);