From d55a54217f7420fcdf817b3fb01b801ced054c24 Mon Sep 17 00:00:00 2001 From: philsbury Date: Tue, 24 Jun 2025 15:51:27 +0100 Subject: [PATCH] Fix explicit nullable type warning --- Function.HTML-Build-Attributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Function.HTML-Build-Attributes.php b/Function.HTML-Build-Attributes.php index 0fb962c..c08d88d 100644 --- a/Function.HTML-Build-Attributes.php +++ b/Function.HTML-Build-Attributes.php @@ -14,7 +14,7 @@ * @return string Returns a string of HTML attributes * or a empty string if $attributes is invalid or empty. */ - function html_build_attributes($attributes, callable $escape = null) + function html_build_attributes($attributes, ?callable $escape = null) { if (is_object($attributes) && !($attributes instanceof \Traversable)) { $attributes = get_object_vars($attributes);