Skip to content

Commit

Permalink
Fixed an "Array to string conversion" warning when using PHP 5.4. Als…
Browse files Browse the repository at this point in the history
…o affects Symfony2 master.
  • Loading branch information
fixe committed Mar 14, 2012
1 parent 07d2d2e commit ed218bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Config/Definition/ArrayNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ed218bb

Please sign in to comment.