Invoker\CallableResolver::isStaticCallToNonStaticMethod PHP 메소드

isStaticCallToNonStaticMethod() 개인적인 메소드

Check if the callable represents a static call to a non-static method.
private isStaticCallToNonStaticMethod ( mixed $callable ) : boolean
$callable mixed
리턴 boolean
    private function isStaticCallToNonStaticMethod($callable)
    {
        if (is_array($callable) && is_string($callable[0])) {
            list($class, $method) = $callable;
            $reflection = new \ReflectionMethod($class, $method);
            return !$reflection->isStatic();
        }
        return false;
    }