mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Raise deprecation errors in the same way as notice-level errors.
This commit is contained in:
parent
06dd79f34c
commit
7db3b8ecd6
@ -697,6 +697,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
|
|||||||
|
|
||||||
case E_NOTICE:
|
case E_NOTICE:
|
||||||
case E_USER_NOTICE:
|
case E_USER_NOTICE:
|
||||||
|
case E_USER_DEPRECATED:
|
||||||
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
|
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,10 @@ class DebugView extends Object {
|
|||||||
'title' => 'User Notice',
|
'title' => 'User Notice',
|
||||||
'class' => 'notice'
|
'class' => 'notice'
|
||||||
),
|
),
|
||||||
|
E_USER_DEPRECATED => array(
|
||||||
|
'title' => 'Deprecation',
|
||||||
|
'class' => 'notice'
|
||||||
|
),
|
||||||
E_CORE_ERROR => array(
|
E_CORE_ERROR => array(
|
||||||
'title' => 'Core Error',
|
'title' => 'Core Error',
|
||||||
'class' => 'error'
|
'class' => 'error'
|
||||||
|
Loading…
Reference in New Issue
Block a user