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:
Ingo Schommer 2012-03-27 02:31:55 -07:00
commit a4b668d130
2 changed files with 5 additions and 0 deletions

View File

@ -697,6 +697,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
case E_NOTICE:
case E_USER_NOTICE:
case E_USER_DEPRECATED:
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
break;
}

View File

@ -30,6 +30,10 @@ class DebugView extends Object {
'title' => 'User Notice',
'class' => 'notice'
),
E_USER_DEPRECATED => array(
'title' => 'Deprecation',
'class' => 'notice'
),
E_CORE_ERROR => array(
'title' => 'Core Error',
'class' => 'error'