8000 Fix markup · symfony/symfony-docs@ab66a12 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab66a12

Browse files
committed
Fix markup
1 parent ca54d55 commit ab66a12

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

components/options_resolver.rst

Lines changed: 5 additions & 9 deletions
Original file line numberD 8000 iff 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
~~~~~~~~~~~~~~~~
@@ -413,12 +412,9 @@ In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\Option
413412
to add additional allowed values without erasing the ones already set.
414413

415414
.. versionadded:: 2.6
416-
Before Symfony 2.6, `setAllowedValues()` and `addAllowedValues()` expected
415+
Before Symfony 2.6, ``setAllowedValues()`` and ``addAllowedValues()`` expected
417416
the values to be given as an array mapping option names to allowed values:
418-
419-
.. code-block:: php
420-
421-
$resolver->setAllowedValues(array('transport' => array('sendmail', 'mail', 'smtp')));
417+
``$resolver->setAllowedValues(array('transport' => array('sendmail', 'mail', 'smtp')));``
422418

423419
Option Normalization
424420
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0