Throw exceptions on PHP warnings

Sometimes we miss PHP warnings because our layout overlays them.
This commit is contained in:
Eric Lippmann 2014-11-04 13:20:41 +01:00
parent f9fee2df70
commit 45d3005f3c
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ abstract class ApplicationBootstrap
return false; // Continue with the normal error handler
}
switch($errno) {
case E_WARNING:
case E_STRICT:
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}