Closed Guite closed 10 months ago
Upgrading psr/http-message to version 2.0 breaks phpas2 because they added return types.
psr/http-message
phpas2
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
I found a workaround in this fork which removed the PSR interfaces as part of these commits.
I had this issue too so I've forked and made a PR - #42
Upgrading
psr/http-message
to version 2.0 breaksphpas2
because they added return types.See https://github.com/php-fig/http-message/releases/tag/2.0
Error message: