8000 Very minor grammar fix in error message · symfony/symfony@1c65f36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c65f36

Browse files
committed
Very minor grammar fix in error message
1 parent 2f53d69 c
8000
ommit 1c65f36

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
@@ -312,7 +312,7 @@ protected function normalizeValue($value)
312312

313313
// if extra fields are present, throw exception
314314
if (count($value) && !$this->ignoreExtraKeys) {
315-
$msg = sprintf('Unrecognized options "%s" under "%s"', implode(', ', array_keys($value)), $this->getPath());
315+
$msg = sprintf('Unrecognized option%s "%s" under "%s"', count($value) == 1 ? null : 's', implode(', ', array_keys($value)), $this->getPath());
316316
$ex = new InvalidConfigurationException($msg);
317317
$ex->setPath($this->getPath());
318318

0 commit comments

Comments
 (0)
0