src/Template/Engine.php
public function callFunction($name, Template $template = null, $arguments = [])
    {
        $callable = $this->getFunction($name);

        if (\is_array($callable) &&
            isset($callable[0]) &&
            $callable[0] instanceof ExtensionInterface
        ) {
            $callable[0]->template = $template;
        }

        return $callable(...$arguments);
    }
public function callFunction($name, Template $template = null, $arguments = [])
    {
        $callable = $this->getFunction($name);

        if (\is_array($callable) &&
            isset($callable[0]) &&
            $callable[0] instanceof ExtensionInterface
        ) {
            $callable[0]->template = $template;
        }

        return $callable(...$arguments);
    }
public function callFunction ( $ name , Template $ template = null , $ arguments = [ ] ) { $ callable = $ this -> getFunction ( $ name ) ; if ( \ is_array ( $ callable ) && isset ( $ callable [ 0 ] ) && $ callable [ 0 ] instanceof ExtensionInterface ) { $ callable [ 0 ] -> template = $ template ; } return $ callable ( ... $ arguments ) ; }
Call the function.

@param string   $name
@param Template $template
@param array    $arguments

@return mixed
Call the function .