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)
842
842
return $ this ->notInstantiable ($ concrete );
843
843
}
844
844
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
+ // }
848
848
849
849
$ this ->buildStack [] = $ concrete ;
850
850
Original file line number Diff line number Diff line change @@ -564,13 +564,13 @@ public function testContainerCanResolveClasses()
564
564
$ this ->assertInstanceOf (ContainerConcreteStub::class, $ class );
565
565
}
566
566
567
- public function testContainerCanCatchCircularDependency ()
568
- {
569
- $ this ->expectException (CircularDependencyException::class);
567
+ // public function testContainerCanCatchCircularDependency()
568
+ // {
569
+ // $this->expectException(CircularDependencyException::class);
570
570
571
- $ container = new Container ;
572
- $ container ->get (CircularAStub::class);
573
- }
571
+ // $container = new Container;
572
+ // $container->get(CircularAStub::class);
573
+ // }
574
574
}
575
575
576
576
class CircularAStub
You can’t perform that action at this time.
0 commit comments