also skip one element when __callStatic is given
authorRoland Häder <roland@mxchange.org>
Sat, 17 Jun 2017 20:49:40 +0000 (22:49 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 17 Jun 2017 20:49:40 +0000 (22:49 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/class_BaseFrameworkSystem.php

index acf765d..4e51786 100644 (file)
@@ -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'],