Very minor grammar fix in error message

This commit is contained in:
Wouter J 2014-12-19 12:33:33 +01:00
parent 2f53d69fa4
commit 1c65f36254
1 changed files with 1 additions and 1 deletions

View File

@ -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());