I got an error Function name must be a string
on this line, I think it's might be a compatibility problem because this line was written in php 7
public static $renderers = array();
public static function somefunction($tpl, $params)
{
return self::$renderers[$tpl]($params);
}