Fixed order of backtrace items if provided as array.
This commit is contained in:
1 parent
7412da0741
commit
63f1b9e216
1 file changed
+2
@@ -47,6 +47,8 @@ class Backtrace_Formatter {
|
||||
|
||||
if ( \is_string( $backtrace ) ) {
|
||||
$backtrace = explode( ', ', $backtrace );
|
||||
} else {
|
||||
$backtrace = array_reverse( $backtrace );
|
||||
}
|
||||
|
||||
$backtrace = array_filter( $backtrace, [ $this, 'filter' ] );
|
||||
|
||||
Reference in new issue
Block a user