Skip to content

Commit

Permalink
Missing array_pop
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlankhorst committed Mar 26, 2018
1 parent 36a8f53 commit 24c77c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ protected function resolve($abstract, $parameters = [])
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
array_pop($this->resolveStack);

return $this->instances[$abstract];
}

Expand Down

0 comments on commit 24c77c0

Please sign in to comment.