final public function typehintMethod($class, string $method, array $custom = [])
    {
        $className = get_class($class);

        $reflectionMethod = new ReflectionMethod($className, $method);

        $reflectionParameters = $reflectionMethod->getParameters();

        $params = $this->resolveParams($reflectionParameters, $custom);

        return call_user_func_array(
            [
                $class,
                $method
            ],
            $params
        );
    }
final public function typehintMethod($class, string $method, array $custom = [])
    {
        $className = get_class($class);

        $reflectionMethod = new ReflectionMethod($className, $method);

        $reflectionParameters = $reflectionMethod->getParameters();

        $params = $this->resolveParams($reflectionParameters, $custom);

        return call_user_func_array(
            [
                $class,
                $method
            ],
            $params
        );
    }
final public function typehintMethod ( $ class , string $ method , array $ custom = [ ] ) { $ className = get_class ( $ class ) ; $ reflectionMethod = new ReflectionMethod ( $ className , $ method ) ; $ reflectionParameters = $ reflectionMethod -> getParameters ( ) ; $ params = $ this -> resolveParams ( $ reflectionParameters , $ custom ) ; return call_user_func_array ( [ $ class , $ method ] , $ params ) ; }
Typehint a class method.
Typehint a class method .