src/Container/ReflectionContainer.php
protected function argument(\ReflectionParameter $parameter, $name)
    {
        try {
            $argument = $parameter->getDefaultValue();
        } catch (\ReflectionException $exception) {
            $argument = $this->get($name);
        }

        return $argument;
    }
protected function argument(\ReflectionParameter $parameter, $name)
    {
        try {
            $argument = $parameter->getDefaultValue();
        } catch (\ReflectionException $exception) {
            $argument = $this->get($name);
        }

        return $argument;
    }
Returns an argument based on the given parameter.

@param  \ReflectionParameter $parameter
@param  string               $name
@return mixed|null