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 11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \Test ;
13
13
14
+ use Psr \Container \ContainerInterface ;
14
15
use Symfony \Component \DependencyInjection \Container ;
15
16
use Symfony \Component \DependencyInjection \ParameterBag \ParameterBagInterface ;
16
17
use Symfony \Component \HttpKernel \KernelInterface ;
@@ -137,7 +138,7 @@ public function getRemovedIds(): array
137
138
return $ this ->getPublicContainer ()->getRemovedIds ();
138
139
}
139
140
140
- private function getPublicContainer ()
141
+ private function getPublicContainer (): Container
141
142
{
142
143
if (null === $ container = $ this ->kernel ->getContainer ()) {
143
144
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()
146
147
return $ container ;
147
148
}
148
149
149
- private function getPrivateContainer ()
150
+ private function getPrivateContainer (): ContainerInterface
150
151
{
151
152
return $ this ->getPublicContainer ()->get ($ this ->privateServicesLocatorId );
152
153
}
You can’t perform that action at this time.
0 commit comments