Helper.php
public static function bindStatic($className, $methodName, $args = null)
    {
        if (empty($args)) {
            $args = null;
        }
        $native = [$className, $methodName];
        $callback = function () use ($native, $args) {
            $a = func_get_args();
            if ($args !== null) {
                $a = array_merge($a, $args);
            }
            return call_user_func_array($native, $a);
        };
        return $callback->bindTo(null, $className);
    }
public static function bindStatic($className, $methodName, $args = null)
    {
        if (empty($args)) {
            $args = null;
        }
        $native = [$className, $methodName];
        $callback = function () use ($native, $args) {
            $a = func_get_args();
            if ($args !== null) {
                $a = array_merge($a, $args);
            }
            return call_user_func_array($native, $a);
        };
        return $callback->bindTo(null, $className);
    }
public static function bindStatic ( $ className , $ methodName , $ args = null ) { if ( empty ( $ args ) ) { $ args = null ; } $ native = [ $ className , $ methodName ] ; $ callback = function ( ) use ( $ native , $ args ) { $ a = func_get_args ( ) ; if ( $ args !== null ) { $ a = array_merge ( $ a , $ args ) ; } return call_user_func_array ( $ native , $ a ) ; } ; return $ callback -> bindTo ( null , $ className ) ; }
Binds a class with its static method

@param string $className
@param string $methodName
@param array $args [optional]
@return \Closure
Binds a class with its static method