src/PhpPackages/Container/Container.php
protected function attemptToResolve(ReflectionClass $reflector)
    {
        $dependencies = [];

        foreach ((new TypeHint($reflector))->read() as $parameter) {
            if ( ! $parameter["isClass"]) {
                if ( ! $parameter["hasDefaultValue"]) {
                    return false;
                }

                $dependencies[] = $parameter["defaultValue"];
            } else {
                $dependencies[] = $this->make($parameter["value"]);
            }
        }

        return $this->inject($reflector->newInstanceArgs($dependencies));
    }
protected function attemptToResolve(ReflectionClass $reflector)
    {
        $dependencies = [];

        foreach ((new TypeHint($reflector))->read() as $parameter) {
            if ( ! $parameter["isClass"]) {
                if ( ! $parameter["hasDefaultValue"]) {
                    return false;
                }

                $dependencies[] = $parameter["defaultValue"];
            } else {
                $dependencies[] = $this->make($parameter["value"]);
            }
        }

        return $this->inject($reflector->newInstanceArgs($dependencies));
    }
Attempts to resolve ALL dependencies (in the constructor AND property annotations).

@param ReflectionClass $reflector
@return boolean|object