]> git.mxchange.org Git - core.git/commitdiff
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 acf765d8b31083c9082fd73c00ae1699fcf54835..4e517861b05b67f9f8804d50ee1b476cebee22d4 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'],