Christophe Coevoet пре 14 година
родитељ
комит
a5bac4b5a3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

+ 2 - 2
src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

@@ -271,7 +271,7 @@ class XmlFileLoader extends FileLoader
 
         // anonymous services as arguments
         if (false === $nodes = $xml->xpath('//container:argument[@type="service"][not(@id)]')) {
-            return;
+            return $xml;
         }
         foreach ($nodes as $node) {
             // give it a unique name
@@ -283,7 +283,7 @@ class XmlFileLoader extends FileLoader
 
         // anonymous services "in the wild"
         if (false === $nodes = $xml->xpath('//container:services/container:service[not(@id)]')) {
-            return;
+            return $xml;
         }
         foreach ($nodes as $node) {
             // give it a unique name