Throw exceptions on PHP warnings
Sometimes we miss PHP warnings because our layout overlays them.
This commit is contained in:
parent
f9fee2df70
commit
45d3005f3c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue