mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #267 from sminnee/show-deprecation-notices
MINOR: Raise deprecation errors in the same way as notice-level errors.
This commit is contained in:
commit
a4b668d130
@ -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