Skip to content

Commit 990f720

Browse files
committed
Response::setContentType $charset accepts null now
1 parent 8ba538a commit 990f720

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,13 +781,13 @@ public function isAutoEtag() : bool
781781
* Set the Content-Type header.
782782
*
783783
* @param string $mime
784-
* @param string $charset
784+
* @param string|null $charset
785785
*
786786
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
787787
*
788788
* @return static
789789
*/
790-
public function setContentType(string $mime, string $charset = 'UTF-8') : static
790+
public function setContentType(string $mime, ?string $charset = 'UTF-8') : static
791791
{
792792
$this->setHeader(
793793
ResponseHeader::CONTENT_TYPE,

0 commit comments

Comments
 (0)