Skip to content

Commit 6e31eb4

Browse files
authored
Fix extensions of contextual bindings (#53514)
1 parent 06dfc61 commit 6e31eb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Container.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,9 @@ protected function resolve($abstract, $parameters = [], $raiseEvents = true)
836836
// Before returning, we will also set the resolved flag to "true" and pop off
837837
// the parameter overrides for this build. After those two things are done
838838
// we will be ready to return back the fully constructed class instance.
839-
$this->resolved[$abstract] = true;
839+
if (! $needsContextualBuild) {
840+
$this->resolved[$abstract] = true;
841+
}
840842

841843
array_pop($this->with);
842844

0 commit comments

Comments
 (0)