Fixed #991 to support non-closure callables on PHP 5.3
This commit is contained in:
parent
b16423b26b
commit
5a4c558865
@ -3411,7 +3411,7 @@ class Parser
|
||||
|
||||
$function = is_string($functionClass)
|
||||
? new $functionClass($functionName)
|
||||
: $functionClass($functionName);
|
||||
: call_user_func($functionClass, $functionName);
|
||||
|
||||
$function->parse($this);
|
||||
|
||||
@ -3450,7 +3450,7 @@ class Parser
|
||||
|
||||
$function = is_string($functionClass)
|
||||
? new $functionClass($functionName)
|
||||
: $functionClass($functionName);
|
||||
: call_user_func($functionClass, $functionName);
|
||||
|
||||
$function->parse($this);
|
||||
|
||||
@ -3490,7 +3490,7 @@ class Parser
|
||||
|
||||
$function = is_string($functionClass)
|
||||
? new $functionClass($functionName)
|
||||
: $functionClass($functionName);
|
||||
: call_user_func($functionClass, $functionName);
|
||||
|
||||
$function->parse($this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user