diff --git a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
index c8950b80c7332b1ccb63ea948e3323dbe01007d8..72d8fc43e3c81a72a52739e0828accc504a55287 100644
--- a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
@@ -293,6 +293,8 @@ class TransportFactoryTest extends UnitTestCase
 
     /**
      * @test
+     * @requires PHP < 8.1
+     * @todo Temporarly restrict to PHP version before 8.1, until symfony/mailer deprecation issue has been fixed.
      */
     public function sendmailTransportCallsDispatchOfDispatcher(): void
     {