We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc913ed + 7093af4 commit 8284d11Copy full SHA for 8284d11
routing.rst
@@ -988,7 +988,9 @@ parameter:
988
.. tip::
989
990
To give a ``null`` default value to any parameter, add nothing after the
991
- ``?`` character (e.g. ``/blog/{page?}``).
+ ``?`` 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``).
994
995
Priority Parameter
996
~~~~~~~~~~~~~~~~~~
0 commit comments