From c859790e1a86015a7d7d6505ca9ed311e98d608a Mon Sep 17 00:00:00 2001 From: Wouter J Date: Fri, 9 Jan 2015 01:58:37 +0100 Subject: [PATCH] Fixed markup --- components/options_resolver.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/options_resolver.rst b/components/options_resolver.rst index ef9a0f18bd2..16054e3cade 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 ~~~~~~~~~~~~~~~~