From: Roland Häder Date: Sat, 17 Jun 2017 20:49:40 +0000 (+0200) Subject: also skip one element when __callStatic is given X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e72033bed456c820815feeb2d25335245499448e;p=core.git also skip one element when __callStatic is given Signed-off-by: Roland Häder --- 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'],