Skip to content

Commit cc3f1c2

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Update exception message | options_resolver.rst
2 parents f2a255e + fd4daa4 commit cc3f1c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/options_resolver.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ is thrown if an unknown option is passed::
115115
]);
116116

117117
// UndefinedOptionsException: The option "usernme" does not exist.
118-
// Known options are: "host", "password", "port", "username"
118+
// Defined options are: "host", "password", "port", "username"
119119

120120
The rest of your code can access the values of the options without boilerplate
121121
code::
@@ -330,7 +330,7 @@ is thrown::
330330
]);
331331

332332
// 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"
334334

335335
In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addAllowedTypes`
336336
to add additional allowed types without erasing the ones already set.
@@ -365,8 +365,8 @@ is thrown::
365365
'transport' => 'send-mail',
366366
]);
367367

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"
370370

371371
For options with more complicated validation schemes, pass a closure which
372372
returns ``true`` for acceptable values and ``false`` for invalid values::

0 commit comments

Comments
 (0)