Skip to content

Commit 37b17ab

Browse files
committed
x
1 parent 18bbfbb commit 37b17ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Framework/Environment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function setupErrors(): void
111111

112112
set_exception_handler([self::class, 'handleException']);
113113

114-
set_error_handler([self::class, 'foo']);
114+
set_error_handler([Environment::class, 'foo']);
115115

116116
/*
117117
register_shutdown_function(static function (): void {
@@ -133,16 +133,16 @@ public static function setupErrors(): void
133133
});*/
134134
}
135135

136-
public static function foo(int $severity, string $message, string $file, int $line): ?bool
136+
public static function foo(int $severity, string $message, string $file, int $line)
137137
{
138-
if (
138+
/* if (
139139
in_array($severity, [E_RECOVERABLE_ERROR, E_USER_ERROR], true)
140140
|| ($severity & error_reporting()) === $severity
141141
) {
142142
// self::handleException(new \ErrorException($message, 0, $severity, $file, $line));
143143
}
144144
145-
return false;
145+
return false;*/
146146
}
147147

148148

0 commit comments

Comments
 (0)