public static function callStatic($class, $method, $args = null)
    {
        $args   = \func_get_args();
        $class  = \array_shift($args);
        $method = \array_shift($args);

        $refl = new \ReflectionClass($class);
        $reflMethod = $refl->getMethod($method);
        $reflMethod->setAccessible(true);

        return $reflMethod->invokeArgs(null, $args);
    }
public static function callStatic($class, $method, $args = null)
    {
        $args   = \func_get_args();
        $class  = \array_shift($args);
        $method = \array_shift($args);

        $refl = new \ReflectionClass($class);
        $reflMethod = $refl->getMethod($method);
        $reflMethod->setAccessible(true);

        return $reflMethod->invokeArgs(null, $args);
    }
public static function callStatic ( $ class , $ method , $ args = null ) { $ args = \ func_get_args ( ) ; $ class = \ array_shift ( $ args ) ; $ method = \ array_shift ( $ args ) ; $ refl = new \ ReflectionClass ( $ class ) ; $ reflMethod = $ refl -> getMethod ( $ method ) ; $ reflMethod -> setAccessible ( true ) ; return $ reflMethod -> invokeArgs ( null , $ args ) ; }
Call a static method on a class, bypassing visibility restrictions.

@param string|object $class   class name or instance
@param string        $method  method name
@param mixed         $args...

@return mixed
Call a static method on a class bypassing visibility restrictions .