Skip to content

Commit e962663

Browse files
committed
Update PHPDocs
1 parent 2b01ad2 commit e962663

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected function removeHeader(string $name) : static
233233
}
234234

235235
/**
236-
* Remove many headers by a list of headers.
236+
* Remove all headers.
237237
*
238238
* @return static
239239
*/

src/Response.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,19 @@ public function appendHeader(string $name, string $value) : static
189189
return parent::appendHeader($name, $value);
190190
}
191191

192+
/**
193+
* Remove a header by name.
194+
*
195+
* NOTE: This method does not remove headers set by PHP, such as with
196+
* sessions or the `header()` function. To do this type of removal use the
197+
* `header_remove()` function.
198+
*
199+
* @see https://www.php.net/manual/en/function.header-remove.php
200+
*
201+
* @param string $name
202+
*
203+
* @return static
204+
*/
192205
#[Override]
193206
public function removeHeader(string $name) : static
194207
{

0 commit comments

Comments
 (0)