Logging class major change, Debug\Support update
old Debug\Logging is in Debug\LoggingLegacy and Debug\Logging extends Logging\Logging Logging\Logging is a new class with most of the functionality except there is no more print/outout to screen, but we use the default log levels (RFC5424) The plan is to be a frontend between the old type class and Monolog\Monolog Updated all other classes to use new class interface
This commit is contained in:
@@ -32,8 +32,13 @@ function MyErrorHandler(
|
||||
int $line,
|
||||
array $context = []
|
||||
): bool {
|
||||
/** @phpstan-ignore-next-line cannot check show all errors constant */
|
||||
if (!(error_reporting() & $type) && SHOW_ALL_ERRORS === false) {
|
||||
if (!defined('SHOW_ALL_ERRORS')) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
!(error_reporting() & $type) &&
|
||||
SHOW_ALL_ERRORS === false
|
||||
) {
|
||||
// This error code is not included in error_reporting
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user