8000 Fix CS · symfony/symfony@7cb8ba5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cb8ba5

Browse files
committed
Fix CS
1 parent 90056b8 commit 7cb8ba5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,11 @@ protected function finalizeValue($value)
213213
foreach ($this->children as $name => $child) {
214214
if (!\array_key_exists($name, $value)) {
215215
if ($child->isRequired()) {
216-
$message = sprintf('The child config "%s" under "%s" must be configured.', $name, $this->getPath());
216+
$message = sprintf('The child config "%s" under "%s" must be configured', $name, $this->getPath());
217217
if ($child->getInfo()) {
218-
$message .= sprintf("\n\n Description: %s", $child->getInfo());
218+
$message .= sprintf(": %s", $child->getInfo());
219+
} else {
220+
$message .= '.';
219221
}
220222
$ex = new InvalidConfigurationException($message);
221223
$ex->setPath($this->getPath());

0 commit comments

Comments
 (0)
0