Skip to content

Commit 24c77c0

Browse files
committed
Missing array_pop
1 parent 36a8f53 commit 24c77c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Container/Container.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,8 @@ protected function resolve($abstract, $parameters = [])
641641
// just return an existing instance instead of instantiating new instances
642642
// so the developer can keep using the same objects instance every time.
643643
if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
644+
array_pop($this->resolveStack);
645+
644646
return $this->instances[$abstract];
645647
}
646648

0 commit comments

Comments
 (0)