Skip to content

Commit dcf0cc0

Browse files
dbuOskarStark
andauthored
Update controller.rst
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 887074b commit dcf0cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ payload formats::
506506

507507
If you write a JSON API, make sure to declare your route to use the JSON
508508
format. This will make the error handling output a JSON response in case of
509-
validation errors, rather than an HTML page.
509+
validation errors, rather than an HTML page::
510510
511-
``#[Route('/dashboard', name: 'dashboard', format: 'json')]
511+
#[Route('/dashboard', name: 'dashboard', format: 'json')]
512512

513513
Make sure to install `phpstan/phpdoc-parser`_ and `phpdocumentor/type-resolver`_
514514
if you want to map a nested array of specific DTOs::

0 commit comments

Comments
 (0)