Closed Dormilich closed 1 year ago
Is this a duplicate of #707?
I'll prepare a release that includes the fix for this issue (https://github.com/getsentry/sentry-symfony/pull/708). Sorry about that!
Meh, didn't think of looking up closed issues, sorry.
I would prefer if this were solved without a direct dependency on guzzlehttp/psr7 as the affected code does not require a specific implementation to achieve its goal ($partialUri
could be created from any UriInterface
instance).
@cleptric we should avoid similar issues in the future by adding https://packagist.org/packages/maglnet/composer-require-checker in CI
Btw, sentry/sentry has the same issue in GuzzleTracingMiddleware
.
Btw, sentry/sentry has the same issue in
GuzzleTracingMiddleware
.
No, see https://github.com/getsentry/sentry-php/issues/1521#issuecomment-1525909913
Environment
PHP: 7.4.33 sentry/sdk: (omitted) sentry/sentry: 3.17.0 sentry/sentry-symfony: 4.7.0 symfony/*: 5.4.21
Steps to Reproduce
Note: Installation done through composer
composer.json
Expected Result
The HTTP request should be processed without error.
Actual Result
The requests throws a class-not-found error.
The reason for this error is that
GuzzleHttp\Psr7\Uri
is used inAbstractTraceableHttpClient::request()
without declaring it a dependency in either sentry/sentry-symfony or sentry/sentry. However, guzzlehttp/psr7 is a dependency of sentry/sdk.A possible fix were to have a dependency on
Psr\Http\Message\UriFactoryInterface
inAbstractTraceableHttpClient
since that is already required by sentry/sentry.