Skip to content

Commit 7093af4

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Update routing.rst
2 parents 0138c9e + eb89325 commit 7093af4

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
@@ -994,7 +994,9 @@ parameter:
994994
.. tip::
995995

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

9991001
Priority Parameter
10001002
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)