From e72033bed456c820815feeb2d25335245499448e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 17 Jun 2017 22:49:40 +0200 Subject: [PATCH] also skip one element when __callStatic is given MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- framework/main/classes/class_BaseFrameworkSystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/main/classes/class_BaseFrameworkSystem.php b/framework/main/classes/class_BaseFrameworkSystem.php index acf765d8..4e517861 100644 --- a/framework/main/classes/class_BaseFrameworkSystem.php +++ b/framework/main/classes/class_BaseFrameworkSystem.php @@ -1852,8 +1852,8 @@ Loaded includes: // Get backtrace $backtrace = debug_backtrace(!DEBUG_BACKTRACE_PROVIDE_OBJECT); - // Is function 'partialStub' ? - if ($backtrace[1]['function'] == 'partialStub') { + // Is function partialStub/__callStatic ? + if (($backtrace[1]['function'] == 'partialStub') || ($backtrace[1]['function'] == '__callStatic')) { // Prepend class::function:line from 3rd element $message = sprintf('[%s::%s:%d]: %s', $backtrace[2]['class'], -- 2.39.5