This commit is contained in:
2021-09-18 18:03:47 +08:00
parent 8b943076a1
commit d77f5b16c3
2 changed files with 2 additions and 11 deletions
-9
View File
@@ -113,15 +113,6 @@ class Response implements ResponseInterface
return $this->hasHeader('Content-Type');
}
/**
* @return string
*/
#[Pure] public function getContentType(): string
{
return $this->getHeaderLine('Content-Type');
}
/**
* @param string|null $value
* @return Response
+2 -2
View File
@@ -43,9 +43,9 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface
/**
* @return string
* @return string|null
*/
public function getContentType(): string;
public function getContentType(): ?string;
/**