Skip to content

Commit

Permalink
replaced is_callable() by instanceof Closure
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Sep 30, 2019
1 parent 0b2f3ed commit 30d75eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fhtml/_FHtmlTemplateTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private function _addStructRecursive ($node, FHtml $pointer, array $arguments, a
$pointer->curNode->add($node);
return;
}
if (is_callable($node)) {
if ($node instanceof \Closure) {
$ret = $node($pointer);
$pointer->tpl($ret, $arguments);
return;
Expand Down

0 comments on commit 30d75eb

Please sign in to comment.