File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Test ;
1313
14+ use Psr \Container \ContainerInterface ;
1415use Symfony \Component \DependencyInjection \Container ;
1516use Symfony \Component \DependencyInjection \ParameterBag \ParameterBagInterface ;
1617use Symfony \Component \HttpKernel \KernelInterface ;
@@ -137,7 +138,7 @@ public function getRemovedIds(): array
137138 return $ this ->getPublicContainer ()->getRemovedIds ();
138139 }
139140
140- private function getPublicContainer ()
141+ private function getPublicContainer (): Container
141142 {
142143 if (null === $ container = $ this ->kernel ->getContainer ()) {
143144 throw new \LogicException ('Cannot access the container on a non-booted kernel. Did you forget to boot it? ' );
@@ -146,7 +147,7 @@ private function getPublicContainer()
146147 return $ container ;
147148 }
148149
149- private function getPrivateContainer ()
150+ private function getPrivateContainer (): ContainerInterface
150151 {
151152 return $ this ->getPublicContainer ()->get ($ this ->privateServicesLocatorId );
152153 }
You can’t perform that action at this time.
0 commit comments