diff --git a/src/OutgoingRequestInterface.php b/src/OutgoingRequestInterface.php index df3533f..3e08789 100644 --- a/src/OutgoingRequestInterface.php +++ b/src/OutgoingRequestInterface.php @@ -111,12 +111,11 @@ public function removeHeader($header); /** * Sets the body of the message. * - * The body MUST be a StreamableInterface object. Setting the body to null MUST - * remove the existing body. + * The body MUST be a StreamableInterface object. * - * @param StreamableInterface|null $body Body. + * @param StreamableInterface $body Body. * @return void * @throws \InvalidArgumentException When the body is not valid. */ - public function setBody(StreamableInterface $body = null); + public function setBody(StreamableInterface $body); } diff --git a/src/OutgoingResponseInterface.php b/src/OutgoingResponseInterface.php index 2b248d8..e9f3094 100644 --- a/src/OutgoingResponseInterface.php +++ b/src/OutgoingResponseInterface.php @@ -109,12 +109,11 @@ public function removeHeader($header); /** * Sets the body of the message. * - * The body MUST be a StreamableInterface object. Setting the body to null MUST - * remove the existing body. + * The body MUST be a StreamableInterface object. * - * @param StreamableInterface|null $body Body. + * @param StreamableInterface $body Body. * @return void * @throws \InvalidArgumentException When the body is not valid. */ - public function setBody(StreamableInterface $body = null); + public function setBody(StreamableInterface $body); }