Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-adding Debug::caller() which was inadvertently removed in 9eca2d6

  • Loading branch information...
commit 26a3c1cf4a722ff1d8fc41dadb91ef8e238cdb3b 1 parent 8b0bb8d
@halkyon halkyon authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 dev/Debug.php
View
12 dev/Debug.php
@@ -82,7 +82,17 @@ public static function show($val, $showHeader = true) {
}
}
-
+
+ public static function caller() {
+ $bt = debug_backtrace();
+ $caller = $bt[2];
+ $caller['line'] = $bt[1]['line'];
+ $caller['file'] = $bt[1]['file'];
+ if(!isset($caller['class'])) $caller['class'] = '';
+ if(!isset($caller['type'])) $caller['type'] = '';
+ return $caller;
+ }
+
/**
* Close out the show dumper
*
Please sign in to comment.
Something went wrong with that request. Please try again.