We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba538a commit 990f720Copy full SHA for 990f720
1 file changed
src/Response.php
@@ -781,13 +781,13 @@ public function isAutoEtag() : bool
781
* Set the Content-Type header.
782
*
783
* @param string $mime
784
- * @param string $charset
+ * @param string|null $charset
785
786
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
787
788
* @return static
789
*/
790
- public function setContentType(string $mime, string $charset = 'UTF-8') : static
+ public function setContentType(string $mime, ?string $charset = 'UTF-8') : static
791
{
792
$this->setHeader(
793
ResponseHeader::CONTENT_TYPE,
0 commit comments