Very minor grammar fix in error message
This commit is contained in:
parent
2f53d69fa4
commit
1c65f36254
@ -312,7 +312,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
|
|||||||
|
|
||||||
// if extra fields are present, throw exception
|
// if extra fields are present, throw exception
|
||||||
if (count($value) && !$this->ignoreExtraKeys) {
|
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 = new InvalidConfigurationException($msg);
|
||||||
$ex->setPath($this->getPath());
|
$ex->setPath($this->getPath());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user