diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php b/typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php
index ee91fac5b658504560764bf16fecd82d1303bb0e..978140f9089617feffd742a920535931d62bd3e2 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php
@@ -187,8 +187,8 @@ abstract class AbstractDataHandlerActionTestCase extends FunctionalTestCase
             ->fetchOne();
 
         $entryMessages = array_map(
-            static function (array $entry) {
-                return self::formatLogDetails($entry['details'] ?? '', $entry['log_data'] ?? '');
+            function (array $entry) {
+                return $this->formatLogDetails($entry['details'] ?? '', $entry['log_data'] ?? '');
             },
             $statement->fetchAllAssociative()
         );