Skip to content

Commit

Permalink
Provide debug_backtrace with proper args
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire committed Sep 19, 2018
1 parent ed8dd86 commit 0d826ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function register($mode = 0)
}

$mode = $getMode();
$trace = debug_backtrace(true);
$trace = debug_backtrace();
$group = 'other';

$i = \count($trace);
Expand Down

0 comments on commit 0d826ae

Please sign in to comment.