Skip to content

Issue #3271517: Passing null to htmlspecialchars is deprecated

Updating to PHP 8.1 brings this error:

Deprecated function: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Component\Utility\Html::escape() (line 424 of core/lib/Drupal/Component/Utility/Html.php). 

MR fixes it.

Merge request reports

Loading