Skip to content

Commit adb59f1

Browse files
committed
Fix tests
1 parent 5e0053d commit adb59f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function minimized_backtrace_as_string()
2828

2929
return collect($backtrace)
3030
->map(function (string $line) {
31-
return preg_match('/(#\d+) (.*?):/', $line, $matches)
31+
return preg_match('/(#\d+) .*? called at \[(.*?)]/', $line, $matches) || preg_match('/(#\d+) (.*?):/', $line, $matches)
3232
? "{$matches[1]} {$matches[2]}"
3333
: false;
3434
})
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#0 \/.*?\/src\/debug\.php\(27\)
2-
#1 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php\(35\)
3-
#2 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php\(25\)
4-
#3 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php\(13\)
1+
#0 \/.*?\/src\/debug\.php.*?27.*?
2+
#1 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php.*?35.*?
3+
#2 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php.*?25.*?
4+
#3 \/.*?\/tests\/debug\/MinimizedBacktraceAsStringTest\.php.*?13.*?

0 commit comments

Comments
 (0)