-
Notifications
You must be signed in to change notification settings - Fork 522
Replace HTTPlug factories by PSR-17 #1184
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
Conversation
7c339e5
to
411e864
Compare
Failures will be fixed once 4.4 will be tagged. |
@jbelien could you review/merge this? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
If we do a new Major after this PR, then we can also remove the getMessageFactory()
method instead of deprecate it.
Thanks for the review @Nyholm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the 8 failing tests ? I had a quick look and it seems related to createRequest()
function.
Needs geocoder-php/provider-integration-tests#20 before I can move forward. |
Woops! Sorry, I've missed that one. Checking it now 👍 |
Hello @nicolas-grekas @jbelien ! Is there any progress on this PR? |
I've just merged geocoder-php/provider-integration-tests#20 and created a new release ; @nicolas-grekas can now update this PR. 👍 |
68d716c
to
162224a
Compare
PR rebased and ready. The two failures are related to the subtree splitting and need v4.6.0 of the common-http package to be released. |
@jbelien Is there a planned release date for version 4.6 for https://github.com/geocoder-php/php-common-http |
Looking forward to this being released :) |
@Nyholm You are probably very busy, but do you know what is needed to move this PR forward? Thanks 💙 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
I think it all looks good. Just one minor
src/Http/composer.json
Outdated
"php-http/message-factory": "^1.0.2", | ||
"psr/http-message": "^1.0 || ^2.0", | ||
"psr/http-message-implementation": "^1.0", | ||
"php": "^7.4 || ^8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like an issue while rebasing. Please remove this line and support php8 only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbelien I am happy to merge.
No worries. That is how it is sometimes. Let's move forward with this =) |
Thank you for the PR and the reviews |
All interfaces of
php-http/message-factory
are now deprecated.This PR provides a way to move to PSR-17 instead.