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

Adopt PSR-18 #32

Closed
holtkamp opened this issue Jan 11, 2021 · 7 comments
Closed

Adopt PSR-18 #32

holtkamp opened this issue Jan 11, 2021 · 7 comments

Comments

@holtkamp
Copy link
Contributor

Http\Client\HttpClient is deprecated, use of PSR-18 using Psr\Http\Client\ClientInterface is preferred

Since https://github.com/woohoolabs/yang/blob/d0a085edeb9dd7b8ebaad7d9f5a3dbbc88f7149a/src/JsonApi/Client/JsonApiAsyncClient.php still depends on HTTPPlug, maybe this can be isolated in a separate package woohoolabs/yang-async?

This would allow a smooth migration to PSR-18

@kocsismate
Copy link
Member

Thanks for bringing this issue up! To be honest, I forgot about that HTTPlug is still used.. So I agree we should get rid of it. That said, I already wanted to make a major release (so that PHP 7.4 is required), and your suggestions will go well with that.

@sveriger
Copy link

Hi @kocsismate . Thx for your work!
I need this feature, too. And I m happy to see that you consider this in major version 3, which is currently beta-1. Do you know when you will provide this?

@kocsismate
Copy link
Member

The PR is merged :) Thanks for your patience! At last, I opted for keeping HTTPlug for the async client, I guess that's not a big problem to still have this dependency.

Unfortunately, I completely missed the beta version, so I had to merge master to the 3.0 branch. Please have a look at the changes if you have time, and tell me if I should add anything there. Then I'll release beta 2, and not soon afterwards, the final version. :)

@holtkamp
Copy link
Contributor Author

@kocsismate thanks for the effort! Nice to see that the maximum PHPStan level has been reached 😃

Looks good to me!

@kocsismate
Copy link
Member

@holtkamp The only bigger unsolved "issue" is with array/iterable type hints. I was added them for hours just to get even more errors, so at last I stopped fixing them and ignored the error category in the config.

@holtkamp
Copy link
Contributor Author

@kocsismate yeah, chasing higher levels of strictness in PHPStan can be a "rabbithole" that only gets deeper and deeper... 🐰

@kocsismate
Copy link
Member

v3.0 is released, so I'm closing the issue :)

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

No branches or pull requests

3 participants