8000 Fixed an "Array to string conversion" warning when using PHP 5.4. Als… · symfony/symfony@ed218bb · GitHub
[go: up one dir, main page]

Skip to content

Commit ed218bb

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

1 parent 07d2d2e commit ed218bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Definition/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected function normalizeValue($value)
267267
if (count($value) && !$this->ignoreExtraKeys) {
268268
$msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath());
269269
$ex = new InvalidConfigurationException($msg);
270-
$ex->setPath($this->getPath().'.'.reset($value));
270+
$ex->setPath($this->getPath());
271271

272272
throw $ex;
273273
}

0 commit comments

Comments
 (0)
0