Skip to content

Commit

Permalink
Fixed markup
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jan 9, 2015
1 parent 032a6b4 commit c859790
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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

0 comments on commit c859790

Please sign in to comment.