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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Broken SetRequestMiddleware on Laravel < 6.0 #575

Merged
merged 4 commits into from Sep 30, 2022
Merged

fix: Broken SetRequestMiddleware on Laravel < 6.0 #575

merged 4 commits into from Sep 30, 2022

Conversation

stayallive
Copy link
Collaborator

Release 2.13.0 broke the SetRequestMiddleware on Laravel < 6.0 when symfony/psr-http-message-bridge:^1.0 and zendframework/zend-diactoros was missing. One of those we had listed in our suggest but still we should never break of course.

So I've opted to backport the current code Laravel uses to construct a PSR-7 request, we already require the needed dependencies for that so I'm not sure why we weren't doing this before... but better late than never :)

Also snuk in removing a constructor argument that was not used 馃憖

Fixes #473.

Copy link
Member

@cleptric cleptric left a comment

Choose a reason for hiding this comment

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

Good stuff! 馃榾

@cleptric cleptric added this to the 2.14.0 milestone Sep 30, 2022
@stayallive stayallive merged commit 2224e80 into master Sep 30, 2022
@stayallive stayallive deleted the fixes branch September 30, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class 'Symfony\\Bridge\\PsrHttpMessage\\Factory\\DiactorosFactory' not found
2 participants