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

Using psr/http-message:^2.0 and updating dependencies #17

Merged
merged 4 commits into from
Jan 8, 2024

Conversation

KentarouTakeda
Copy link
Contributor

This pull request provides a dependency update to use psr/http-message:^2.0. It closes #16.

To use it, We also needed to update guzzlehttp/psr7. Addresses breaking changes included in 2.0. Fortunately, only the test code was affected, so the old version of guzzlehttp/psr7 can continue to be used.

Also, just to be sure, I changed the CI settings in my repository and confirmed that the tests would pass even with recent PHP versions, including the latest, which this repository does not yet support. It passes in all php versions from 7.0 to 8.3.

https://github.com/KentarouTakeda/hansott-psr7-cookies/actions/runs/7406316316

test-results-in-my-repo

@KentarouTakeda
Copy link
Contributor Author

@hansott
Hi, could you please check out these changes?

@hansott
Copy link
Owner

hansott commented Jan 4, 2024

@KentarouTakeda I will review in the evening, thanks!

Copy link
Owner

@hansott hansott left a comment

Choose a reason for hiding this comment

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

Thanks so much. I've been taking some time off, sorry about that.

composer.json Outdated
},
"require-dev": {
"scrutinizer/ocular": "~1.1",
"guzzlehttp/psr7": "^1.3",
"guzzlehttp/psr7": "^1.3 || ^2.0",
Copy link
Owner

Choose a reason for hiding this comment

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

I'm fine with dropping support for guzzle ^1.3 and http-message ^1.0, what do you think? :)

Then we don't have to mark the test as skipped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I also think it's no problem.

In that case, psr/http-message:^2.0 requires php:^7.2, so I also removed it from the CI php version. Instead, I added a version newer than 8.0 to CI. You can see results here.

https://packagist.org/packages/hansott/psr7-cookies/php-stats

Right now, the dropped versions seems to be used by nobody :)

@hansott hansott merged commit fdd4790 into hansott:master Jan 8, 2024
7 checks passed
@KentarouTakeda
Copy link
Contributor Author

Thank you for merging and publishing!!

@KentarouTakeda KentarouTakeda deleted the fix/gh-16 branch January 8, 2024 12:05
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.

Support psr/http-message 2
2 participants