Skip to content

Commit c859790

Browse files
committed
Fixed markup
1 parent 032a6b4 commit c859790

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/options_resolver.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,9 @@ In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\Option
361361
to add additional allowed types without erasing the ones already set.
362362

363363
.. versionadded:: 2.6
364-
Before Symfony 2.6, `setAllowedTypes()` and `addAllowedTypes()` expected
365-
the values to be given as an array mapping option names to allowed types::
366-
367-
$resolver->setAllowedTypes(array('port' => array('null', 'int')));
364+
Before Symfony 2.6, ``setAllowedTypes()`` and ``addAllowedTypes()`` expected
365+
the values to be given as an array mapping option names to allowed types:
366+
``$resolver->setAllowedTypes(array('port' => array('null', 'int')));``
368367

369368
Value Validation
370369
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)