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;
    }
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;
    }
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 ; }
Create a new report from a PHP error.

@param \Bugsnag\Configuration $config         the config instance
@param int                    $code           the error code
@param string|null            $message        the error message
@param string                 $file           the error file
@param int                    $line           the error line
@param bool                   $fatal          if the error was fatal

@return static
Create a new report from a PHP error .