diff --git a/src/Illuminate/Container/Container.php b/src/Illuminate/Container/Container.php index ed8d6eba78a4..1b2bad943338 100755 --- a/src/Illuminate/Container/Container.php +++ b/src/Illuminate/Container/Container.php @@ -576,8 +576,6 @@ public function make($abstract) */ protected function resolve($abstract, $parameters = []) { - $this->with[] = $parameters; - $needsContextualBuild = ! empty($parameters) || ! is_null( $this->getContextualConcrete($abstract = $this->getAlias($abstract)) ); @@ -589,6 +587,8 @@ protected function resolve($abstract, $parameters = []) return $this->instances[$abstract]; } + $this->with[] = $parameters; + $concrete = $this->getConcrete($abstract); // We're ready to instantiate an instance of the concrete type registered for