Closed staabm closed 3 years ago
hi, thanks for the clear report and analysis. looking at the code, i think your solution sounds correct. can you do a PR with that change to check for guzzle Utils class like we do for the uri factory? (to be sure it indeed fixes the problem, you could try that code in your project).
PHP version: 8.0.6
Description updating a already working project setup to
guzzle/psr7:^2.0
leads to confusion in combination withphppro/soap-client
.we see the php-soap client picking up the
GuzzleStreamFactory
and this one is not compatible withguzzle/psr7:^2.0
.see more details in https://github.com/phpro/soap-client/issues/385
any pointers in any direction would be helpful. stacking all these psr/http-plug etc. packages together is pretty confusing.
How to reproduce
our (simplified) composer.json looks like
and we are creating the soap client with this code:
and we get a exception:
Possible Solution
basically I am wondering whether https://github.com/php-http/message/blob/master/src/StreamFactory/GuzzleStreamFactory.php would also needs a separate IF case for
guzzle/psr7:^2.0
as was added in https://github.com/php-http/message/pull/139/files for theGuzzleUriFactory
?