@@ -118,7 +118,7 @@ private function parseImports(\DOMDocument $xml, string $file, ?\DOMNode $root =
118118 $ xpath = new \DOMXPath ($ xml );
119119 $ xpath ->registerNamespace ('container ' , self ::NS );
120120
121- if (false === $ imports = $ xpath ->query ('.// container:imports/container:import ' , $ root )) {
121+ if (false === $ imports = $ xpath ->query ('./container:imports/container:import ' , $ root )) {
122122 return ;
123123 }
124124
@@ -134,14 +134,14 @@ private function parseDefinitions(\DOMDocument $xml, string $file, Definition $d
134134 $ xpath = new \DOMXPath ($ xml );
135135 $ xpath ->registerNamespace ('container ' , self ::NS );
136136
137- if (false === $ services = $ xpath ->query ('.// container:services/container:service|.// container:services/container:prototype|./ /container:services/container:stack ' , $ root )) {
137+ if (false === $ services = $ xpath ->query ('./container:services/container:service|./container:services/container:prototype|./container:services/container:stack ' , $ root )) {
138138 return ;
139139 }
140140 $ this ->setCurrentDir (\dirname ($ file ));
141141
142142 $ this ->instanceof = [];
143143 $ this ->isLoadingInstanceof = true ;
144- $ instanceof = $ xpath ->query ('.// container:services/container:instanceof ' , $ root );
144+ $ instanceof = $ xpath ->query ('./container:services/container:instanceof ' , $ root );
145145 foreach ($ instanceof as $ service ) {
146146 $ this ->setDefinition ((string ) $ service ->getAttribute ('id ' ), $ this ->parseDefinition ($ service , $ file , new Definition ()));
147147 }
@@ -192,7 +192,7 @@ private function getServiceDefaults(\DOMDocument $xml, string $file, ?\DOMNode $
192192 $ xpath = new \DOMXPath ($ xml );
193193 $ xpath ->registerNamespace ('container ' , self ::NS );
194194
195- if (null === $ defaultsNode = $ xpath ->query ('.// container:services/container:defaults ' , $ root )->item (0 )) {
195+ if (null === $ defaultsNode = $ xpath ->query ('./container:services/container:defaults ' , $ root )->item (0 )) {
196196 return new Definition ();
197197 }
198198
0 commit comments