tiamo / phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard.
42 stars 41 forks source link

Regression with psr/http-message 2.0 #41

Closed Guite closed 10 months ago

Guite commented 1 year ago

Upgrading psr/http-message to version 2.0 breaks phpas2 because they added return types.

See https://github.com/php-fig/http-message/releases/tag/2.0

Error message:

Fatal error: Declaration of AS2\MimePart::getBody() must be compatible with Psr\Http\Message\MessageInterface::getBody(): Psr\Http\Message\StreamInterface in /builds/.../vendor/tiamo/phpas2/src/MimePart.php on line 308
Guite commented 11 months ago

I found a workaround in this fork which removed the PSR interfaces as part of these commits.

mattdinthehouse commented 10 months ago

I had this issue too so I've forked and made a PR - #42