From 1c65f3625413b96982fbf061306e56319f9b1e62 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Fri, 19 Dec 2014 12:33:33 +0100 Subject: [PATCH] Very minor grammar fix in error message --- src/Symfony/Component/Config/Definition/ArrayNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Config/Definition/ArrayNode.php b/src/Symfony/Component/Config/Definition/ArrayNode.php index ee98ab4e0e..08f2f3dfc9 100644 --- a/src/Symfony/Component/Config/Definition/ArrayNode.php +++ b/src/Symfony/Component/Config/Definition/ArrayNode.php @@ -312,7 +312,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface // if extra fields are present, throw exception if (count($value) && !$this->ignoreExtraKeys) { - $msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath()); + $msg = sprintf('Unrecognized option%s "%s" under "%s"', count($value) == 1 ? null : 's', implode(', ', array_keys($value)), $this->getPath()); $ex = new InvalidConfigurationException($msg); $ex->setPath($this->getPath());