Background: I'm using sentry/sentry-laravel (1.8.0) in my project as well as guzzlehttp/guzzle.
Problem: I would like to upgrade to Guzzle 7, but unfortunately sentry/sdk blocks this due to its dependency on php-http/guzzle6-adapter (which requires guzzlehttp/guzzle ^6.0).
Is there any chance to resolve this blockage?
I've posted a workaround for this earlier today: https://github.com/getsentry/sentry-laravel/issues/360#issuecomment-667851533.
For anyone not using Laravel these composer.json changes should work for you until there is a GuzzleHttp 7 compatible HTTPlug client implementation:
{
"require": {
"sentry/sentry": "^2.4",
"http-interop/http-factory-guzzle": "^1.0",
"php-http/curl-client": "^2.0",
"guzzlehttp/guzzle": "^7.0"
},
"replace": {
"sentry/sdk": "*"
}
}
So. Finally we've updated our sentry/sdk package to no longer use Guzzle (any version) and thus you can install sentry/sentry or the Laravel integration without any changes or workarounds.
Most helpful comment
So. Finally we've updated our
sentry/sdkpackage to no longer use Guzzle (any version) and thus you can installsentry/sentryor the Laravel integration without any changes or workarounds.