diff --git a/messenger.rst b/messenger.rst index 8a4d66fe4ac..ef99281af80 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1738,7 +1738,7 @@ Other Middlewares The ``validation`` middleware was introduced in Symfony 4.1. Add the ``validation`` middleware if you need to validate the message -object using the :doc:`Validator component ` before handling it. +object using the :doc:`Validator component ` before handling it. If validation fails, a ``ValidationFailedException`` will be thrown. The :class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp` can be used to configure the validation groups.