Skip to content

Commit 6124a80

Browse files
committed
Reword
1 parent 00a0c4b commit 6124a80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routing.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,9 @@ parameter:
815815
.. tip::
816816

817817
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``)
818+
``?`` character (e.g. ``/blog/{page?}``). If you do this, don't forget to
819+
update the types of the related controller arguments to allow passing
820+
``null`` values (e.g. replace ``int $page`` by ``?int $page``).
820821

821822
Parameter Conversion
822823
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)