Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4da7ab1

Browse files
minor #28506 [PhpUnitBridge] Provide debug_backtrace with proper args (greg0ire)
This PR was merged into the 2.8 branch. Discussion ---------- [PhpUnitBridge] 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 simlified, nor why DEBUG_BACKTRACE_IGNORE_ARGS was there at that time. | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Not sure if this qualifies as a bugfix. If not, should I simplify the ternary and target master? My fear is that having the code diverge too much will make it harder to merge subsequent PRs. I know this looks small, but I'm kind of preparing a big PR on the bridge and I'd rather have it smaller and easier to understand by moving everything I can with small patches like this one. Commits ------- 0d826ae Provide debug_backtrace with proper args
2 parents ed8dd86 + 0d826ae commit 4da7ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/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)