From 7f588556271c87ff487918f1737b10a8b2e760bc Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Mon, 11 Dec 2023 11:10:14 +0200 Subject: [PATCH] Update Sentry SDK --- composer.json | 2 +- src/Bootloader/ClientBootloader.php | 8 ++++++++ src/Version.php | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4512ce1..34e38c5 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "php": ">=8.1", "spiral/boot": "^3.0", "spiral/snapshots": "^3.0", - "sentry/sentry": "^3.1", + "sentry/sentry": "^4.0", "php-http/curl-client": "^2.3.1" }, "require-dev": { diff --git a/src/Bootloader/ClientBootloader.php b/src/Bootloader/ClientBootloader.php index 8637f99..e65e850 100644 --- a/src/Bootloader/ClientBootloader.php +++ b/src/Bootloader/ClientBootloader.php @@ -34,13 +34,21 @@ public function init(EnvironmentInterface $env): void private function createClient(SentryConfig $config): ClientInterface { + /** + * @psalm-suppress InternalClass + * @psalm-suppress InternalMethod + */ $builder = ClientBuilder::create([ 'dsn' => $config->getDSN(), ]); + /** @psalm-suppress InternalMethod */ $builder->setSdkIdentifier(Version::SDK_IDENTIFIER); + + /** @psalm-suppress InternalMethod */ $builder->setSdkVersion(Version::SDK_VERSION); + /** @psalm-suppress InternalMethod */ $client = $builder->getClient(); SentrySdk::setCurrentHub(new Hub($client)); diff --git a/src/Version.php b/src/Version.php index 38c3323..a793fc6 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ final class Version { public const SDK_IDENTIFIER = 'sentry.php.spiral'; - public const SDK_VERSION = '3.1.2'; + public const SDK_VERSION = '4.1.0'; } \ No newline at end of file