-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Don't resolve the Deprecation error handler mode until a deprecation … #30489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,15 +98,14 @@ public static function register($mode = 0) | |
'legacyCount' => 0, | ||
'otherCount' => 0, | ||
'remaining vendorCount' => 0, | ||
'unsilenced' => array(), | ||
'remaining' => array(), | ||
'legacy' => array(), | ||
'other' => array(), | ||
'remaining vendor' => array(), | ||
'unsilenced' => [], | ||
'remaining' => [], | ||
'legacy' => [], | ||
'other' => [], | ||
'remaining vendor' => [], | ||
]; | ||
$deprecationHandler = function ($type, $msg, $file, $line, $context = array()) use (&$deprecations, $getMode, $UtilPrefix, $inVendors) { | ||
$mode = $getMode(); | ||
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) || DeprecationErrorHandler::MODE_DISABLED === $mode) { | ||
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) || self::MODE_DISABLED === $mode = $getMode()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. self:: should be reverted for the same reason There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is closed -> #30490 |
||
$ErrorHandler = $UtilPrefix.'ErrorHandler'; | ||
|
||
return $ErrorHandler::handleError($type, $msg, $file, $line, $context); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the bridge in 4.2 needs to remain compatible with PHP 5.3, this should be reverted