@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @param array $filterList |
| 50 | 50 | * a list of namespaces and classes to skip over |
| 51 | - * @return StackFrame |
|
| 51 | + * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame |
|
| 52 | 52 | */ |
| 53 | 53 | function get_caller(array $filterList = []) |
| 54 | 54 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * the debug_backtrace() return value |
| 70 | 70 | * @param array $filterList |
| 71 | 71 | * a list of namespaces and classes to skip over |
| 72 | - * @return StackFrame |
|
| 72 | + * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame |
|
| 73 | 73 | */ |
| 74 | 74 | function get_caller_from_trace(array $backtrace, array $filterList = []) |
| 75 | 75 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | // PHP's stack trace is a little esoteric. To find all the details about |
| 90 | 90 | // a caller, we have to combine information from two stack frames. |
| 91 | - $prevFrame = $backtrace[max($index - 1,0)]; |
|
| 91 | + $prevFrame = $backtrace[max($index - 1, 0)]; |
|
| 92 | 92 | |
| 93 | 93 | // find the first backtrace entry that passes our filters |
| 94 | 94 | for ($i = $index; $i <= $maxIndex; $i++) { |