Invoker\CallableResolver::isStaticCallToNonStaticMethod PHP Method

isStaticCallToNonStaticMethod() private method

Check if the callable represents a static call to a non-static method.
private isStaticCallToNonStaticMethod ( mixed $callable ) : boolean
$callable mixed
return 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;
    }