Skip to content

Commit 254590a

Browse files
Track unsilenced deprecation only for userland
1 parent 428d7c2 commit 254590a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)