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 6124a80

Browse filesBrowse files
committed
Reword
1 parent 00a0c4b commit 6124a80
Copy full SHA for 6124a80

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-2
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,9 @@ parameter:
815815
.. tip::
816816

817817
To give a ``null`` default value to any parameter, add nothing after the
818-
``?`` character (e.g. ``/blog/{page?}``). Also, remember to add the
819-
``?`` character before the function parameter type to make it permit null values (e.g. ``?int``)
818+
``?`` character (e.g. ``/blog/{page?}``). If you do this, don't forget to
819+
update the types of the related controller arguments to allow passing
820+
``null`` values (e.g. replace ``int $page`` by ``?int $page``).
820821

821822
Parameter Conversion
822823
~~~~~~~~~~~~~~~~~~~~

0 commit comments

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