Skip to content
This repository
Browse code

MINOR: Raise deprecation errors in the same way as notice-level errors.

  • Loading branch information...
commit 7db3b8ecd64806c239c808c77491c33ad4e73116 1 parent 06dd79f
Sam Minnée authored March 24, 2012
1  dev/Debug.php
@@ -697,6 +697,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
697 697
 
698 698
 		case E_NOTICE:
699 699
 		case E_USER_NOTICE:
  700
+		case E_USER_DEPRECATED:
700 701
 			Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
701 702
 			break;
702 703
 	}
4  dev/DebugView.php
@@ -30,6 +30,10 @@ class DebugView extends Object {
30 30
 			'title' => 'User Notice',
31 31
 			'class' => 'notice'
32 32
 		),
  33
+		E_USER_DEPRECATED => array(
  34
+			'title' => 'Deprecation',
  35
+			'class' => 'notice'
  36
+		),
33 37
 		E_CORE_ERROR => array(
34 38
 			'title' => 'Core Error',
35 39
 			'class' => 'error'

0 notes on commit 7db3b8e

Please sign in to comment.
Something went wrong with that request. Please try again.