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.
1 parent 00a0c4b commit 6124a80Copy full SHA for 6124a80
routing.rst
@@ -815,8 +815,9 @@ parameter:
815
.. tip::
816
817
To give a ``null`` default value to any parameter, add nothing after the
818
- ``?`` character (e.g. ``/blog/{page?}``). Also, remember to add the
819
- ``?`` character before the function parameter type to make it permit null values (e.g. ``?int``)
+ ``?`` character (e.g. ``/blog/{page?}``). If you do this, don't forget to
+ update the types of the related controller arguments to allow passing
820
+ ``null`` values (e.g. replace ``int $page`` by ``?int $page``).
821
822
Parameter Conversion
823
~~~~~~~~~~~~~~~~~~~~
0 commit comments