diff --git a/components/options_resolver.rst b/components/options_resolver.rst index ef9a0f18bd2..3f274b672d1 100644 --- a/components/options_resolver.rst +++ b/components/options_resolver.rst @@ -361,10 +361,9 @@ In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\Option to add additional allowed types without erasing the ones already set. .. versionadded:: 2.6 - Before Symfony 2.6, `setAllowedTypes()` and `addAllowedTypes()` expected - the values to be given as an array mapping option names to allowed types:: - - $resolver->setAllowedTypes(array('port' => array('null', 'int'))); + Before Symfony 2.6, ``setAllowedTypes()`` and ``addAllowedTypes()`` expected + the values to be given as an array mapping option names to allowed types:: + ``$resolver->setAllowedTypes(array('port' => array('null', 'int')));`` Value Validation ~~~~~~~~~~~~~~~~ @@ -413,12 +412,9 @@ In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\Option to add additional allowed values without erasing the ones already set. .. versionadded:: 2.6 - Before Symfony 2.6, `setAllowedValues()` and `addAllowedValues()` expected + Before Symfony 2.6, ``setAllowedValues()`` and ``addAllowedValues()`` expected the values to be given as an array mapping option names to allowed values: - - .. code-block:: php - - $resolver->setAllowedValues(array('transport' => array('sendmail', 'mail', 'smtp'))); + ``$resolver->setAllowedValues(array('transport' => array('sendmail', 'mail', 'smtp')));`` Option Normalization ~~~~~~~~~~~~~~~~~~~~
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: