Skip to content

Commit

Permalink
minor #4799 Fix markup (WouterJ)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.6 branch.

Discussion
----------

Fix markup

versionadded directives are quite strange, as it doesn't allow to have empty lines in it. So both code blocks were rendered as a blockquote (using shortcut) and PHP code for the main text (using code-block directive). This fixes it and also fixes some other markup errors.

Commits
-------

ab66a12 Fix markup
  • Loading branch information
wouterj committed Jan 16, 2015
2 parents a42e5b6 + ab66a12 commit 6522145
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 6522145

Please sign in to comment.