@@ -115,7 +115,7 @@ is thrown if an unknown option is passed::
115
115
]);
116
116
117
117
// UndefinedOptionsException: The option "usernme" does not exist.
118
- // Known options are: "host", "password", "port", "username"
118
+ // Defined options are: "host", "password", "port", "username"
119
119
120
120
The rest of your code can access the values of the options without boilerplate
121
121
code::
@@ -330,7 +330,7 @@ is thrown::
330
330
]);
331
331
332
332
// InvalidOptionsException: The option "host" with value "25" is
333
- // expected to be of type "string"
333
+ // expected to be of type "string", but is of type "int"
334
334
335
335
In sub-classes, you can use :method: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver::addAllowedTypes `
336
336
to add additional allowed types without erasing the ones already set.
@@ -365,8 +365,8 @@ is thrown::
365
365
'transport' => 'send-mail',
366
366
]);
367
367
368
- // InvalidOptionsException: The option "transport" has the value
369
- // "send-mail", but is expected to be one of "sendmail", "mail", "smtp"
368
+ // InvalidOptionsException: The option "transport" with value "send-mail"
369
+ // is invalid. Accepted values are: "sendmail", "mail", "smtp"
370
370
371
371
For options with more complicated validation schemes, pass a closure which
372
372
returns ``true `` for acceptable values and ``false `` for invalid values::
0 commit comments