Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9919bca

Browse filesBrowse files
committed
Revert "Fixed markup"
This reverts commit c859790.
1 parent c859790 commit 9919bca
Copy full SHA for 9919bca

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎components/options_resolver.rst

Copy file name to clipboardExpand all lines: components/options_resolver.rst
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ 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-
``$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+
367+
$resolver->setAllowedTypes(array('port' => array('null', 'int')));
367368

368369
Value Validation
369370
~~~~~~~~~~~~~~~~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.