|
@@ -39,7 +39,7 @@ |
|
|
block discarded – undo |
|
39
|
39
|
// SLE-57 Making warnings and notices to exceptions for development |
|
40
|
40
|
// set_error_handler only handles non-fatal errors. The function callback is not called by fatal errors. |
|
41
|
41
|
set_error_handler( |
|
42
|
|
- function ($severity, $message, $file, $line) { |
|
|
42
|
+ function($severity, $message, $file, $line) { |
|
43
|
43
|
// Don't throw exception if error reporting is turned off. |
|
44
|
44
|
// '&' checks if a particular error level is included in the result of error_reporting(). |
|
45
|
45
|
if (error_reporting() & $severity) { |
Please login to merge, or discard this patch.