Skip to content
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

Fix the client when used with guzzle 7.9 #145

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

stof
Copy link
Contributor

@stof stof commented Aug 2, 2024

Guzzle 7.9 introduces stricter checks on the protocol version. This protocol version is configured through the version config option. As the whole KeenIOClient config was passed to the instantiated Guzzle Client, this broke things because the version of the keen service was passed to Guzzle as the version config as well, while totally unrelated. The updated logic removes all config options corresponding to the KeenIOClient from the options passed to the Guzzle client.

Guzzle 7.9 introduces stricter checks on the protocol version. This
protocol version is configured through the `version` config option.
As the whole KeenIOClient config was passed to the instantiated Guzzle
Client, this broke things because the version of the keen service was
passed to Guzzle as the version config as well, while totally unrelated.
The updated logic removes all config options corresponding to the
KeenIOClient from the options passed to the Guzzle client.
@stof
Copy link
Contributor Author

stof commented Aug 26, 2024

@michalpierog Hi. Is there any chance to get this merged (and released) ?

@michalpierog michalpierog merged commit 755f7c1 into keenlabs:master Aug 26, 2024
11 checks passed
@michalpierog
Copy link
Member

@stof Hi, the version https://github.com/keenlabs/KeenClient-PHP/releases/tag/v2.9.0 was released. Thanks for your contribution.

@stof stof deleted the fix_compat branch August 26, 2024 14:51
@stof
Copy link
Contributor Author

stof commented Aug 26, 2024

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants