public static function register($client = null)
    {
        $handler = new static($client instanceof Client ? $client : Client::make($client));

        $handler->registerBugsnagHandlers(false); // don't preserve previous handlers

        return $handler;
    }
public static function register($client = null)
    {
        $handler = new static($client instanceof Client ? $client : Client::make($client));

        $handler->registerBugsnagHandlers(false); // don't preserve previous handlers

        return $handler;
    }
public static function register ( $ client = null ) { $ handler = new static ( $ client instanceof Client ? $ client : Client :: make ( $ client ) ) ; $ handler -> registerBugsnagHandlers ( false ) ; // don't preserve previous handlers return $ handler ; }
Register our handlers.

@param \Bugsnag\Client|string|null $client client instance or api key

@return static
Register our handlers .