Skip to content

Commit 8284d11

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Update routing.rst
2 parents dc913ed + 7093af4 commit 8284d11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,9 @@ parameter:
988988
.. tip::
989989

990990
To give a ``null`` default value to any parameter, add nothing after the
991-
``?`` character (e.g. ``/blog/{page?}``).
991+
``?`` character (e.g. ``/blog/{page?}``). If you do this, don't forget to
992+
update the types of the related controller arguments to allow passing
993+
``null`` values (e.g. replace ``int $page`` by ``?int $page``).
992994

993995
Priority Parameter
994996
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)