src/Leevel/Kernel/Bootstrap/RegisterRuntime.php
public function setErrorHandle(int $code, string $description, ?string $file = null, ?int $line = null, $context = null): void
    {
        // 根据 error_reporing 等级来确定是否抛出错误
        if (!(error_reporting() & $code)) {
            return;
        }

        throw new ErrorException($description, 0, $code, (string) ($file), (int) ($line));
    }
public function setErrorHandle(int $code, string $description, ?string $file = null, ?int $line = null, $context = null): void
    {
        // 根据 error_reporing 等级来确定是否抛出错误
        if (!(error_reporting() & $code)) {
            return;
        }

        throw new ErrorException($description, 0, $code, (string) ($file), (int) ($line));
    }
设置错误句柄.

@param int    $code
@param string $description
@param string $file
@param int    $line
@param mixed  $context