src/Container/src/MutableContainer.php
private function isResolvableCallable(Invokable $reflectedCallable): bool
    {
        // If array represents callable we need to be sure it's an object or a resolvable service id.
        $callable = $reflectedCallable->callable();

        return $reflectedCallable->isFunction()
               || is_object($callable[0])
               || $this->isResolvableService($callable[0]);
    }
private function isResolvableCallable(Invokable $reflectedCallable): bool
    {
        // If array represents callable we need to be sure it's an object or a resolvable service id.
        $callable = $reflectedCallable->callable();

        return $reflectedCallable->isFunction()
               || is_object($callable[0])
               || $this->isResolvableService($callable[0]);
    }
private function isResolvableCallable ( Invokable $ reflectedCallable ) : bool { // If array represents callable we need to be sure it's an object or a resolvable service id. $ callable = $ reflectedCallable -> callable ( ) ; return $ reflectedCallable -> isFunction ( ) || is_object ( $ callable [ 0 ] ) || $ this -> isResolvableService ( $ callable [ 0 ] ) ; }
Verifies that provided callable can be called by service container.

@param Invokable $reflectedCallable
@return bool
Verifies that provided callable can be called by service container .