We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea1971 commit fc897baCopy full SHA for fc897ba
src/SAREhub/Commons/Misc/ErrorHandlerHelper.php
@@ -8,11 +8,11 @@
8
9
class ErrorHandlerHelper
10
{
11
- public static function registerDefaultErrorHandler()
+ public static function registerDefaultErrorHandler($errorTypes = E_ALL)
12
13
- self::enableErrorReporting(E_ALL);
+ self::enableErrorReporting($errorTypes);
14
self::hideDisplayErrors();
15
- self::registerErrorToExceptionHandler(E_ALL);
+ self::registerErrorToExceptionHandler($errorTypes);
16
}
17
18
public static function enableErrorReporting($errorTypes)
0 commit comments