Skip to content

Commit fa713da

Browse files
committed
Missing array_pop
1 parent 36a8f53 commit fa713da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Container/Container.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ 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);
644645
return $this->instances[$abstract];
645646
}
646647

0 commit comments

Comments
 (0)