Skip to content

Commit 0d826ae

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 ed8dd86 commit 0d826ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

+1-1
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)