55namespace  Codeception \Lib \Connector ;
66
77use  InvalidArgumentException ;
8+ use  ReflectionClass ;
9+ use  ReflectionMethod ;
10+ use  ReflectionProperty ;
811use  Symfony \Bundle \FrameworkBundle \Test \TestContainer ;
912use  Symfony \Component \DependencyInjection \ContainerInterface ;
1013use  Symfony \Component \HttpFoundation \Request ;
@@ -28,9 +31,9 @@ class Symfony extends HttpKernelBrowser
2831    /** 
2932     * Constructor. 
3033     * 
31-      * @param Kernel             $kernel     A booted HttpKernel instance 
32-      * @param array              $services   An injected services 
33-      * @param bool               $rebootable 
34+      * @param Kernel $kernel     A booted HttpKernel instance 
35+      * @param array  $services   An injected services 
36+      * @param bool   $rebootable 
3437     */ 
3538    public  function  __construct (Kernel $ kernelarray  $ servicesbool  $ rebootabletrue )
3639    {
@@ -133,17 +136,17 @@ private function persistDoctrineConnections(): void
133136        }
134137
135138        if  ($ this container  instanceof  TestContainer) {
136-             $ reflectedTestContainernew  \ ReflectionMethod ($ this container , 'getPublicContainer ' );
139+             $ reflectedTestContainernew  ReflectionMethod ($ this container , 'getPublicContainer ' );
137140            $ reflectedTestContainersetAccessible (true );
138141            $ publicContainer$ reflectedTestContainerinvoke ($ this container );
139142        } else  {
140143            $ publicContainer$ this container ;
141144        }
142145
143-         $ reflectedContainernew  \ ReflectionClass ($ publicContainer
146+         $ reflectedContainernew  ReflectionClass ($ publicContainer
144147        $ reflectionTarget$ reflectedContainerhasProperty ('parameters ' ) ? $ publicContainer$ publicContainergetParameterBag ();
145148
146-         $ reflectedParametersnew  \ ReflectionProperty ($ reflectionTarget'parameters ' );
149+         $ reflectedParametersnew  ReflectionProperty ($ reflectionTarget'parameters ' );
147150        $ reflectedParameterssetAccessible (true );
148151        $ parameters$ reflectedParametersgetValue ($ reflectionTarget
149152        unset($ parameters'doctrine.connections ' ]);
0 commit comments