diff --git a/composer.json b/composer.json index 7b62481..34e38c5 100644 --- a/composer.json +++ b/composer.json @@ -13,14 +13,13 @@ "php": ">=8.1", "spiral/boot": "^3.0", "spiral/snapshots": "^3.0", - "sentry/sentry": "^3.1", - "php-http/curl-client": "^2.2", - "symfony/options-resolver": "^4.4.30|^5.0.11|^6.0" + "sentry/sentry": "^4.0", + "php-http/curl-client": "^2.3.1" }, "require-dev": { "phpunit/phpunit": "^9.5.5", "mockery/mockery": "^1.5", - "vimeo/psalm": "^5.1", + "vimeo/psalm": "^5.17", "psr/log": "^3.0", "spiral/testing": "^2.2" }, 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