solr/Plugin.php
protected function call(Container $container, $id, ...$args)
    {
        $ret = $container->resolve($id);

        if (is_array($ret) && $ret[0] instanceof \Closure && is_bool($ret[1])) {
            return ($ret[1]) ? $ret[0]($container, ...$args) : $ret[0](...$args);
        }

        return null;
    }
protected function call(Container $container, $id, ...$args)
    {
        $ret = $container->resolve($id);

        if (is_array($ret) && $ret[0] instanceof \Closure && is_bool($ret[1])) {
            return ($ret[1]) ? $ret[0]($container, ...$args) : $ret[0](...$args);
        }

        return null;
    }
protected function call ( Container $ container , $ id , ... $ args ) { $ ret = $ container -> resolve ( $ id ) ; if ( is_array ( $ ret ) && $ ret [ 0 ] instanceof \ Closure && is_bool ( $ ret [ 1 ] ) ) { return ( $ ret [ 1 ] ) ? $ ret [ 0 ] ( $ container , ... $ args ) : $ ret [ 0 ] ( ... $ args ) ; } return null ; }
Small helper for calling declared methods with arguments.

@param Container $container
@param array|string $id
@param mixed ...$args
@return mixed
Small helper for calling declared methods with arguments .