We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f652f3 commit e8362a9Copy full SHA for e8362a9
DeprecationErrorHandler.php
@@ -54,7 +54,11 @@ public static function register($mode = 0)
54
if (false === $mode) {
55
$mode = getenv('SYMFONY_DEPRECATIONS_HELPER');
56
}
57
- if (DeprecationErrorHandler::MODE_WEAK !== $mode && DeprecationErrorHandler::MODE_WEAK_VENDORS !== $mode && (!isset($mode[0]) || '/' !== $mode[0])) {
+ if (DeprecationErrorHandler::MODE_DISABLED !== $mode
58
+ && DeprecationErrorHandler::MODE_WEAK !== $mode
59
+ && DeprecationErrorHandler::MODE_WEAK_VENDORS !== $mode
60
+ && (!isset($mode[0]) || '/' !== $mode[0])
61
+ ) {
62
$mode = preg_match('/^[1-9][0-9]*$/', $mode) ? (int) $mode : 0;
63
64
0 commit comments