Skip to content

Commit 9f81959

Browse files
committed
Fix calling of functions by string
1 parent 42f34e2 commit 9f81959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Function.HTML-Build-Attributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function html_build_attributes($attr, callable $callback = null)
3131
}
3232
}
3333

34-
if (is_callable($val)) {
34+
if (is_object($val) && is_callable($val)) {
3535
$val = $val();
3636
}
3737

0 commit comments

Comments
 (0)