Throw exception on E_NOTICE
Use of uninitialized values must be detected asap.
This commit is contained in:
parent
2cd8e14998
commit
6ba4e55277
|
@ -459,6 +459,7 @@ abstract class ApplicationBootstrap
|
|||
return false; // Continue with the normal error handler
|
||||
}
|
||||
switch($errno) {
|
||||
case E_NOTICE:
|
||||
case E_WARNING:
|
||||
case E_STRICT:
|
||||
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
|
||||
|
|
Loading…
Reference in New Issue