public static function fromPHPThrowable(Configuration $config, $throwable)
    {
        $report = new static($config);

        $report->setPHPThrowable($throwable)
               ->setUnhandled(false)
               ->setSeverityReason(['type' => 'handledException']);

        return $report;
    }
public static function fromPHPThrowable(Configuration $config, $throwable)
    {
        $report = new static($config);

        $report->setPHPThrowable($throwable)
               ->setUnhandled(false)
               ->setSeverityReason(['type' => 'handledException']);

        return $report;
    }
public static function fromPHPThrowable ( Configuration $ config , $ throwable ) { $ report = new static ( $ config ) ; $ report -> setPHPThrowable ( $ throwable ) -> setUnhandled ( false ) -> setSeverityReason ( [ 'type' => 'handledException' ] ) ; return $ report ; }
Create a new report from a PHP throwable.

@param \Bugsnag\Configuration $config         the config instance
@param \Throwable             $throwable      the throwable instance

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