Skip to content
This repository
Browse code

BUGFIX: Fix E_STRICT errors not being reported

  • Loading branch information...
commit c5aa074bff83374e0d41f9cb00ea9c2101d52b92 1 parent a64715b
Andrew O'Neil authored
3  dev/Debug.php
@@ -220,7 +220,7 @@ static function noticeHandler($errno, $errstr, $errfile, $errline, $errcontext)
220 220
 			),
221 221
 			SS_Log::NOTICE
222 222
 		);
223  
-		
  223
+
224 224
 		if(Director::isDev()) {
225 225
 			self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Notice");
226 226
 		}
@@ -699,6 +699,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
699 699
 		case E_USER_NOTICE:
700 700
 		case E_DEPRECATED:
701 701
 		case E_USER_DEPRECATED:
  702
+		case E_STRICT:
702 703
 			Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
703 704
 			break;
704 705
 	}
4  dev/DebugView.php
@@ -53,6 +53,10 @@ class DebugView extends Object {
53 53
 		E_USER_WARNING => array(
54 54
 			'title' => 'User Warning',
55 55
 			'class' => 'warning'
  56
+		),
  57
+		E_STRICT => array(
  58
+			'title' => 'Strict Notice',
  59
+			'class' => 'notice'
56 60
 		)
57 61
 	);
58 62
 

0 notes on commit c5aa074

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