File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Symfony/Component/Config/Definition Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,11 @@ protected function finalizeValue($value)
213
213
foreach ($ this ->children as $ name => $ child ) {
214
214
if (!\array_key_exists ($ name , $ value)) {
215
215
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 ());
217
217
if ($ child ->getInfo ()) {
218
- $ message .= sprintf ("\n\n Description: %s " , $ child ->getInfo ());
218
+ $ message .= sprintf (": %s " , $ child ->getInfo ());
219
+ } else {
220
+ $ message .= '. ' ;
219
221
}
220
222
$ ex = new InvalidConfigurationException ($ message );
221
223
$ ex ->setPath ($ this ->getPath ());
You can’t perform that action at this time.
0 commit comments