Skip to content

Commit

Permalink
bug symfony#20404 Fix error_pages.rst setResponse() (Florian-Merle)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.4 branch.

Discussion
----------

Fix error_pages.rst setResponse()

I believe symfony#13877 should not have been merged because `setException` has been replaced by `setThrowable`, not `setResponse`.

Commits
-------

8905736 Fix error_pages.rst setResponse()
  • Loading branch information
OskarStark committed Nov 22, 2024
2 parents 5f1dda8 + 8905736 commit 29c83bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ error pages.

.. note::

If your listener calls ``setThrowable()`` on the
If your listener calls ``setResponse()`` on the
:class:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent`
event, propagation will be stopped and the response will be sent to
the client.
Expand Down

0 comments on commit 29c83bd

Please sign in to comment.