Update PSR dependency#511
Conversation
|
Hey @cracksalad, thanks for your input on the You're right that we first need to remove the dependency on I'll close this PR for now, as the suggested change won't work with the current project setup. Further discussion will happen in #513. |
A |
|
@cracksalad In short the PSR-7 implementation we're currently using isn't compatible with v2, which should change in v3 of this package. (We're skipping v2 and are going to jump to v3 while also bumping the minimum PHP version and a whole lot of other changes.) |
@cracksalad This is the case here, like @WyriHaximus said, we're currently using their interfaces in a few classes, which are not compatible to the v2. For example, one thing we need to add for compatibility are return types as described in https://www.php-fig.org/psr/psr-7/meta/#72-type-additions. |
Allow usage of psr/http-message v2.0.
When using reactphp/http
composer outdatedshows:and
composer why psr/http-messagesays:So as long as #485 is not resolved (and ringcentral/psr7 is not updated), this PR does not change anything.
For compatibility concerns see PSR Meta Document. The new version restriction still allows to use psr/http-message v1.0 and v1.1 if e.g. newer versions are not compatible with your PHP version, but it also allows to use v2.0.