Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49ec485

Browse filesBrowse 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
Copy full SHA for 49ec485

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.