There is a small inconsistency the way Decode:: splitMessage() behaves, the headers variable referenced in splitMessage is supposed to of type Headers always, but when splitMessage is called with an empty content headers will become an empty array. This breaks client libraries for example: https://github.com/zendframework/zend-mail/blob/master/src/Message.php#L566
[x] Are you fixing a bug?
[x] Detail how the bug is invoked currently.
[x] Detail the original, incorrect behavior.
[x] Detail the new, expected behavior.
[x] Base your feature on the master branch, and submit against that branch.
[ ] Add a regression test that demonstrates the bug, and proves the fix.
There is a small inconsistency the way
Decode:: splitMessage()
behaves, theheaders
variable referenced in splitMessage is supposed to of typeHeaders
always, but when splitMessage is called with an empty contentheaders
will become an empty array. This breaks client libraries for example: https://github.com/zendframework/zend-mail/blob/master/src/Message.php#L566master
branch, and submit against that branch.CHANGELOG.md
entry for the fix.