addFunctionSmart allow array as callable

This commit is contained in:
bzick 2014-07-08 10:27:02 +04:00
parent 0340915b76
commit d9b21ea68c
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ class Compiler
*/
public static function smartFuncParser(Tokenizer $tokens, Tag $tag)
{
if (strpos($tag->callback, "::")) {
if (strpos($tag->callback, "::") || is_array($tag->callback)) {
list($class, $method) = explode("::", $tag->callback, 2);
$ref = new \ReflectionMethod($class, $method);
} else {