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

Do not extend Guzzle\Client #121

Merged
merged 2 commits into from
May 28, 2021

Conversation

ThibaultVlacich
Copy link
Contributor

@ThibaultVlacich ThibaultVlacich commented May 27, 2021

I am proposing a small PR to fix a deprecation warning when using Guzzle 7.1+

User Deprecated: The "GuzzleHttp\Client" class is considered final. It may change without further notice as of
its next major version. You should not extend it from "NewTwitchApi\Auth\AuthGuzzleClient".

Extending Guzzle\Client is deprecated since Guzzle 7.1 and the class is annotated as @final. The class will be actually final in Guzzle 8.0.

See guzzle/guzzle#2521

This would be a BC change, but since you're thinking of making a 5.0 release, this would be the time.

Extending Guzzle\Client is deprecated since Guzzle 7.1 and the class is annotated as @Final. The class will be actually final in Guzzle 8.0
@Brandin Brandin requested a review from echosa May 28, 2021 01:15
@Brandin
Copy link
Collaborator

Brandin commented May 28, 2021

I have no objection to these changes but I want @echosa to do a review before I merge it.

Copy link
Collaborator

@echosa echosa left a comment

Choose a reason for hiding this comment

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

Works for me. :-)

@Brandin
Copy link
Collaborator

Brandin commented May 28, 2021

Tested in production, no errors.

@Brandin Brandin merged commit 9ebb174 into nicklaw5:master May 28, 2021
@ThibaultVlacich ThibaultVlacich deleted the guzzle-deprecation branch May 29, 2021 00:40
This was referenced Jun 2, 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.

None yet

3 participants