Skip to content

Commit fcb2b79

Browse files
Update controller.rst
1 parent 4076ec8 commit fcb2b79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

controller.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,7 @@ if you want to map a nested array of specific DTOs::
542542
.. tip::
543543

544544
If using typed properties with `MapRequestPayload`, it's recommanded to use built-in types (like `int`, `bool`, `string`...) for mapping. Using custom types can expose your application implementation outside with errors during denormalization.
545-
Validating an Enum in your `#[MapRequestPayload]` class should look like this:
546-
547-
.. code-block:: php
545+
Validating an Enum in your `#[MapRequestPayload]` class should look like this::
548546

549547
class LuckyController
550548
{

0 commit comments

Comments
 (0)