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 acf56a4 + 6124a80 commit eb89325Copy full SHA for eb89325
routing.rst
@@ -994,7 +994,9 @@ parameter:
994
.. tip::
995
996
To give a ``null`` default value to any parameter, add nothing after the
997
- ``?`` character (e.g. ``/blog/{page?}``).
+ ``?`` 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``).
1000
1001
Priority Parameter
1002
~~~~~~~~~~~~~~~~~~
0 commit comments