Skip to content

Replace usage of removed Sentry\FlushableClientInterface with Sentry\ClientInterface #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 10, 2021

Conversation

superbiche
Copy link
Contributor

This fixes an issue where the condition if ($client instanceof FlushableClientInterface) { always returns false, as Sentry SDK removed FlushableClientInterface in 3.0.0 - see https://github.com/getsentry/sentry-php/blob/master/CHANGELOG.md#300-2020-09-28

Replacing with ClientInterface which is implemented by Client and also enforces the flush method.

sentry-php removed `FlushableClientInterface`. Clients implement `ClientInterface` which enforces the `flush` method.
https://github.com/getsentry/sentry-php/blob/master/CHANGELOG.md#300-2020-09-28
@superbiche superbiche changed the title Replace usage of removed Sentry\FlushableClientInterface with Sentry\ClientInterface + fix Horizon issue Replace usage of removed Sentry\FlushableClientInterface with Sentry\ClientInterface Apr 29, 2021
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, although with the current "stock" transport this does nothing because it sends immediately, for custom transports this could still be important 👍

@stayallive stayallive merged commit 4e1faad into getsentry:master May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants