[10.0] Switch to PSR-17 and PSR-18 #511
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HTTP Plug 1 is deprecated and HTTP Plug 2 recommends only using PSR-17 and PSR-18, rather than the old interfaces. Moreover, Guzzle 7 only implements the new interfaces, so this will be a blocker for anyone wanting to upgrade from Guzzle 6 to 7 and use this package at the same time. I've also fixed a bunch of static analysis errors and added support for cache plugins (just like in KnpLabs/php-github-api).
Note that these changes require bumping the next version of this package to 10.0.0, which is fine. Upgrading shouldn't be hard for people. ;)
Related: KnpLabs/php-github-api#885, BitbucketPHP/Client#39, BitbucketPHP/Client#53, php-http/discovery#175.