Skip to content

Commit 7672bb9

Browse files
authored
Merge pull request #644 from Iandenh/patch-1
Fix that DeprecationsPanel ignores the errorLevel
2 parents d5cd818 + 42b3b27 commit 7672bb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
}
3131

3232
if (!empty($service->getConfig('panels')['DebugKit.Deprecations'])) {
33+
$errorLevel = Configure::read('Error.errorLevel', E_ALL | E_STRICT);
3334
$previousHandler = set_error_handler(
3435
function ($code, $message, $file, $line, $context = null) use (&$previousHandler) {
3536
if ($code == E_USER_DEPRECATED || $code == E_DEPRECATED) {
@@ -40,7 +41,8 @@ function ($code, $message, $file, $line, $context = null) use (&$previousHandler
4041
if ($previousHandler) {
4142
return $previousHandler($code, $message, $file, $line, $context);
4243
}
43-
}
44+
},
45+
$errorLevel | E_USER_DEPRECATED | E_DEPRECATED
4446
);
4547
}
4648

0 commit comments

Comments
 (0)