Skip to content

Commit eb89325

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Update routing.rst
2 parents acf56a4 + 6124a80 commit eb89325

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)