Skip to content

Commit

Permalink
Fix markup
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jan 9, 2015
1 parent ca54d55 commit ab66a12
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions components/options_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -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
~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit ab66a12

Please sign in to comment.