public static function fromPHPError(Configuration $config, $code, $message, $file, $line, $fatal = false)
    {
        $report = new static($config);

        $report->setPHPError($code, $message, $file, $line, $fatal)
               ->setUnhandled(false)
               ->setSeverityReason(['type' => 'handledError']);

        return $report;
    }