Skip to content

Commit 55eabb4

Browse files
authored
Update: 优化错误捕获处理 (#682)
1 parent 9acd3d0 commit 55eabb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Log/ErrorLog.php

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public function register(): void
4646
*/
4747
public function onError(int $errno, string $errstr, string $errfile, int $errline): void
4848
{
49+
if (0 === (error_reporting() & $errno))
50+
{
51+
return;
52+
}
4953
if ($this->exceptionLevel & $errno)
5054
{
5155
throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);

0 commit comments

Comments
 (0)