File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,11 @@ public function removeHeader($header);
111
111
/**
112
112
* Sets the body of the message.
113
113
*
114
- * The body MUST be a StreamableInterface object. Setting the body to null MUST
115
- * remove the existing body.
114
+ * The body MUST be a StreamableInterface object.
116
115
*
117
- * @param StreamableInterface|null $body Body.
116
+ * @param StreamableInterface $body Body.
118
117
* @return void
119
118
* @throws \InvalidArgumentException When the body is not valid.
120
119
*/
121
- public function setBody (StreamableInterface $ body = null );
120
+ public function setBody (StreamableInterface $ body );
122
121
}
Original file line number Diff line number Diff line change @@ -109,12 +109,11 @@ public function removeHeader($header);
109
109
/**
110
110
* Sets the body of the message.
111
111
*
112
- * The body MUST be a StreamableInterface object. Setting the body to null MUST
113
- * remove the existing body.
112
+ * The body MUST be a StreamableInterface object.
114
113
*
115
- * @param StreamableInterface|null $body Body.
114
+ * @param StreamableInterface $body Body.
116
115
* @return void
117
116
* @throws \InvalidArgumentException When the body is not valid.
118
117
*/
119
- public function setBody (StreamableInterface $ body = null );
118
+ public function setBody (StreamableInterface $ body );
120
119
}
You can’t perform that action at this time.
0 commit comments