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

Skip to content

Commit 49ec485

Browse files
bug #43022 [PhpUnitBridge] Track unsilenced deprecations only for userland (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [PhpUnitBridge] Track unsilenced deprecations only for userland | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Native deprecations are never silenced, no need to bother ppl with them in the "unsilenced" group. Commits ------- 08c2b1c Track unsilenced deprecation only for userland
2 parents 985ca1a + 08c2b1c commit 49ec485

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
@@ -146,7 +146,7 @@ public function handleError($type, $msg, $file, $line, $context = [])
146146

147147
$msg = $deprecation->getMessage();
148148

149-
if (error_reporting() & $type) {
149+
if (\E_DEPRECATED !== $type && (error_reporting() & $type)) {
150150
$group = 'unsilenced';
151151
} elseif ($deprecation->isLegacy()) {
152152
$group = 'legacy';

0 commit comments

Comments
 (0)