Permalink
Browse files

Fixed an "Array to string conversion" warning when using PHP 5.4. Als…

…o affects Symfony2 master.
  • Loading branch information...
1 parent 07d2d2e commit ed218bb1b2918129a48d801b5d6573c419e4e320 @fixe fixe committed Mar 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/Config/Definition/ArrayNode.php
@@ -267,7 +267,7 @@ protected function normalizeValue($value)
if (count($value) && !$this->ignoreExtraKeys) {
$msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath());
$ex = new InvalidConfigurationException($msg);
- $ex->setPath($this->getPath().'.'.reset($value));
+ $ex->setPath($this->getPath());
throw $ex;
}

0 comments on commit ed218bb

Please sign in to comment.