Fixed order of backtrace items if provided as array.

This commit is contained in:
Andrey Savchenko committed 2018-12-17 18:15:12 +02:00
1 parent 7412da0741
commit 63f1b9e216
1 file changed
+2
+2
View File
@@ -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' ] );