瀏覽代碼

[DependencyInjection] loader fix

Johannes M. Schmitt 14 年之前
父節點
當前提交
a1fb717074
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

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

@@ -184,7 +184,7 @@ class XmlFileLoader extends FileLoader
         }
 
         if (isset($service['parent'])) {
-            $definition = new DefinitionDecorator($service['parent']);
+            $definition = new DefinitionDecorator((string) $service['parent']);
         } else {
             $definition = new Definition();
         }