Ver Fonte

Fixed an "Array to string conversion" warning when using PHP 5.4. Also affects Symfony2 master.

Tiago Ribeiro há 13 anos atrás
pai
commit
ed218bb1b2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Symfony/Component/Config/Definition/ArrayNode.php

+ 1 - 1
src/Symfony/Component/Config/Definition/ArrayNode.php

@@ -267,7 +267,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
         if (count($value) && !$this->ignoreExtraKeys) {
         if (count($value) && !$this->ignoreExtraKeys) {
             $msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath());
             $msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath());
             $ex = new InvalidConfigurationException($msg);
             $ex = new InvalidConfigurationException($msg);
-            $ex->setPath($this->getPath().'.'.reset($value));
+            $ex->setPath($this->getPath());
 
 
             throw $ex;
             throw $ex;
         }
         }