[TASK] Optimize usage of debug_backtrace()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / GeneralUtility.php
index b1b8b64..0126032 100755 (executable)
@@ -5228,7 +5228,7 @@ Connection: close
         if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog']) {
             return;
         }
-        $trail = debug_backtrace();
+        $trail = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
         if ($trail[1]['type']) {
             $function = new \ReflectionMethod($trail[1]['class'], $trail[1]['function']);
         } else {