diff --git a/messenger.rst b/messenger.rst
index 6fbfd36385d..bf5a8180adc 100644
--- a/messenger.rst
+++ b/messenger.rst
@@ -2548,7 +2548,7 @@ using the ``DispatchAfterCurrentBusMiddleware`` and adding a
     {
         public function __construct(
             private MailerInterface $mailer,
-            EntityManagerInterface $em,
+            private EntityManagerInterface $em,
         ) {
         }