Skip to content

Commit

Permalink
Merge pull request #12 from spiral/sf-7
Browse files Browse the repository at this point in the history
Remove unused symfony/options-resolver
  • Loading branch information
butschster authored Dec 12, 2023
2 parents 84a9c60 + 7f58855 commit 097ae96
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 8 additions & 0 deletions src/Bootloader/ClientBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

0 comments on commit 097ae96

Please sign in to comment.