Skip to content

Commit fc897ba

Browse files
authored
added parameter errorTypes to registerDefaultErrorHandler() (#43)
1 parent 5ea1971 commit fc897ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SAREhub/Commons/Misc/ErrorHandlerHelper.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
class ErrorHandlerHelper
1010
{
11-
public static function registerDefaultErrorHandler()
11+
public static function registerDefaultErrorHandler($errorTypes = E_ALL)
1212
{
13-
self::enableErrorReporting(E_ALL);
13+
self::enableErrorReporting($errorTypes);
1414
self::hideDisplayErrors();
15-
self::registerErrorToExceptionHandler(E_ALL);
15+
self::registerErrorToExceptionHandler($errorTypes);
1616
}
1717

1818
public static function enableErrorReporting($errorTypes)

0 commit comments

Comments
 (0)