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

Support guzzlehttp/psr7 v2 #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brandonkelly
Copy link

This PR adds compatibility with guzzlehttp/psr7 v2, resolving conflicts with other packages that require it for Guzzle 7 + PHP 8 compatibility.

The only breaking change this package was affected by was the removal of GuzzleHttp\Psr7\stream_for, which had been deprecated/replaced by GuzzleHttp\Psr7\Utils::streamFor() in v1.7. So I’ve also bumped the minimum v1 requirement to ^1.7, and started calling the new method instead.

Also bumps the v1 req to 1.7+, which is when GuzzleHttp\Psr7\Utils::streamFor() was added (replacement for stream_for() function, which was removed in v2)
@dawb
Copy link

dawb commented Jan 22, 2023

Is it possible to merge this fix into v1 branch as a new version so that it can allow for psr7 v2?

@karensg
Copy link

karensg commented Mar 6, 2023

Please merge this 🙌

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.

4 participants