Skip to content

Commit a1295ca

Browse files
committed
Provide debug_backtrace with proper args
This would fail if we were using strict mode with php 7, because true is only a valid argument for php < 5.3.6. This was changed from PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT : true in #18272, but I do not understand why it was simplified, nor why DEBUG_BACKTRACE_IGNORE_ARGS was there at that time.
1 parent 85c9541 commit a1295ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function register($mode = 0)
7272
}
7373

7474
$mode = $getMode();
75-
$trace = debug_backtrace(true);
75+
$trace = debug_backtrace();
7676
$group = 'other';
7777

7878
$i = \count($trace);

0 commit comments

Comments
 (0)