File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -842,9 +842,9 @@ public function build($concrete)
842842 return $ this ->notInstantiable ($ concrete );
843843 }
844844
845- if (in_array ($ concrete , $ this ->buildStack )) {
846- throw new CircularDependencyException ("Circular dependency detected while resolving [ {$ concrete }]. " );
847- }
845+ // if (in_array($concrete, $this->buildStack)) {
846+ // throw new CircularDependencyException("Circular dependency detected while resolving [{$concrete}].");
847+ // }
848848
849849 $ this ->buildStack [] = $ concrete ;
850850
Original file line number Diff line number Diff line change @@ -564,13 +564,13 @@ public function testContainerCanResolveClasses()
564564 $ this ->assertInstanceOf (ContainerConcreteStub::class, $ class );
565565 }
566566
567- public function testContainerCanCatchCircularDependency ()
568- {
569- $ this ->expectException (CircularDependencyException::class);
567+ // public function testContainerCanCatchCircularDependency()
568+ // {
569+ // $this->expectException(CircularDependencyException::class);
570570
571- $ container = new Container ;
572- $ container ->get (CircularAStub::class);
573- }
571+ // $container = new Container;
572+ // $container->get(CircularAStub::class);
573+ // }
574574}
575575
576576class CircularAStub
You can’t perform that action at this time.
0 commit comments