* @param int $errorReportingLevel The level of error reporting you want
* @param bool $displayErrors Whether to display errors (for development) or just log them (for production)
*/
- public static function enable($errorReportingLevel = null, $displayErrors = true)
+ public static function enable($errorReportingLevel = E_ALL, $displayErrors = true)
{
if (static::$enabled) {
return;
if (null !== $errorReportingLevel) {
error_reporting($errorReportingLevel);
} else {
- error_reporting(-1);
+ error_reporting(E_ALL);
}
if ('cli' !== PHP_SAPI) {