@@ -48,13 +48,10 @@ trait MessageTrait
4848 // --------------------------------------------------------------------
4949 // Body
5050 // --------------------------------------------------------------------
51-
5251 /**
5352 * Sets the body of the current message.
5453 *
5554 * @param string $data
56- *
57- * @return $this
5855 */
5956 public function setBody ($ data ): self
6057 {
@@ -67,8 +64,6 @@ public function setBody($data): self
6764 * Appends data to the body of the current message.
6865 *
6966 * @param string $data
70- *
71- * @return $this
7267 */
7368 public function appendBody ($ data ): self
7469 {
@@ -144,8 +139,6 @@ public function header($name)
144139 * Sets a header and it's value.
145140 *
146141 * @param array|string|null $value
147- *
148- * @return $this
149142 */
150143 public function setHeader (string $ name , $ value ): self
151144 {
@@ -191,8 +184,6 @@ private function checkMultipleHeaders(string $name): void
191184
192185 /**
193186 * Removes a header from the list of headers we track.
194- *
195- * @return $this
196187 */
197188 public function removeHeader (string $ name ): self
198189 {
@@ -205,8 +196,6 @@ public function removeHeader(string $name): self
205196 /**
206197 * Adds an additional header value to any headers that accept
207198 * multiple values (i.e. are an array or implement ArrayAccess)
208- *
209- * @return $this
210199 */
211200 public function appendHeader (string $ name , ?string $ value ): self
212201 {
@@ -225,8 +214,6 @@ public function appendHeader(string $name, ?string $value): self
225214 * Adds a header (not a header value) with the same name.
226215 * Use this only when you set multiple headers with the same name,
227216 * typically, for `Set-Cookie`.
228- *
229- * @return $this
230217 */
231218 public function addHeader (string $ name , string $ value ): static
232219 {
@@ -251,8 +238,6 @@ public function addHeader(string $name, string $value): static
251238 /**
252239 * Adds an additional header value to any headers that accept
253240 * multiple values (i.e. are an array or implement ArrayAccess)
254- *
255- * @return $this
256241 */
257242 public function prependHeader (string $ name , string $ value ): self
258243 {
@@ -277,8 +262,6 @@ protected function getHeaderName(string $name): string
277262 /**
278263 * Sets the HTTP protocol version.
279264 *
280- * @return $this
281- *
282265 * @throws HTTPException For invalid protocols
283266 */
284267 public function setProtocolVersion (string $ version ): self
0 commit comments