src/Viserio/Component/Console/Command/CommandResolver.php
private function isStaticCallToNonStaticMethod($callable): bool
    {
        if (\is_array($callable) && \is_string($callable[0])) {
            [$class, $method] = $callable;

            $reflection = new ReflectionMethod($class, $method);

            return ! $reflection->isStatic();
        }

        return false;
    }
private function isStaticCallToNonStaticMethod($callable): bool
    {
        if (\is_array($callable) && \is_string($callable[0])) {
            [$class, $method] = $callable;

            $reflection = new ReflectionMethod($class, $method);

            return ! $reflection->isStatic();
        }

        return false;
    }
Check if the callable represents a static call to a non-static method.

@param mixed $callable

@throws \ReflectionException

@return bool