[TASK] Optimize usage of debug_backtrace()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / DataHandler.php
index 94977a2..5b3aabf 100644 (file)
@@ -8024,7 +8024,7 @@ class DataHandler
     protected function getOuterMostInstance()
     {
         if (!isset($this->outerMostInstance)) {
-            $stack = array_reverse(debug_backtrace());
+            $stack = array_reverse(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS));
             foreach ($stack as $stackItem) {
                 if (isset($stackItem['object']) && $stackItem['object'] instanceof DataHandler) {
                     $this->outerMostInstance = $stackItem['object'];