merged branch fixe/patch-3 (PR #3597)
Commits
-------
ed218bb
Fixed an "Array to string conversion" warning when using PHP 5.4. Also affects Symfony2 master.
Discussion
----------
[Config] Fixed an "Array to string conversion" warning when using PHP 5.4
This also affects Symfony2 master
This commit is contained in:
commit
8a574ad078
@ -267,7 +267,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user