Skip to content

Commit d55a542

Browse files
committed
Fix explicit nullable type warning
1 parent 2f0390b commit d55a542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Function.HTML-Build-Attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @return string Returns a string of HTML attributes
1515
* or a empty string if $attributes is invalid or empty.
1616
*/
17-
function html_build_attributes($attributes, callable $escape = null)
17+
function html_build_attributes($attributes, ?callable $escape = null)
1818
{
1919
if (is_object($attributes) && !($attributes instanceof \Traversable)) {
2020
$attributes = get_object_vars($attributes);

0 commit comments

Comments
 (0)