Skip to content

Commit

Permalink
Fix bugsnag version (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Mar 21, 2023
1 parent 9028423 commit 321cdc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Helpers/TelemetryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TelemetryHelper {

private CloudDataStore $datastoreCloud;

private string $version;
private Application $application;

/**
* TelemetryHelper constructor.
Expand All @@ -31,7 +31,7 @@ public function __construct(
) {
$this->cloudApiClientService = $client_service;
$this->datastoreCloud = $datastoreCloud;
$this->version = $application->getVersion();
$this->application = $application;
}

/**
Expand All @@ -49,9 +49,8 @@ public function initializeBugsnag(): void {
}
// It's safe-ish to make this key public.
// @see https://github.com/bugsnag/bugsnag-js/issues/595
// @todo verify that this actually catches errors and exceptions
$bugsnag = Client::make('7b8b2f87d710e3ab29ec0fd6d9ca0474');
$bugsnag->setAppVersion($this->version);
$bugsnag->setAppVersion($this->application->getVersion());
Handler::register($bugsnag);
}

Expand Down

0 comments on commit 321cdc5

Please sign in to comment.