New Message instances have an empty Stream instead of NullStream by default.
This commit is contained in:
parent
409ffe9371
commit
6772bd1ae0
|
|
@ -46,7 +46,7 @@ abstract class Message implements MessageInterface
|
||||||
if ($body !== null) {
|
if ($body !== null) {
|
||||||
$this->body = $body;
|
$this->body = $body;
|
||||||
} else {
|
} else {
|
||||||
$this->body = new NullStream();
|
$this->body = new Stream('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue