改名
This commit is contained in:
@@ -113,15 +113,6 @@ class Response implements ResponseInterface
|
|||||||
return $this->hasHeader('Content-Type');
|
return $this->hasHeader('Content-Type');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
#[Pure] public function getContentType(): string
|
|
||||||
{
|
|
||||||
return $this->getHeaderLine('Content-Type');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|null $value
|
* @param string|null $value
|
||||||
* @return Response
|
* @return Response
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public function getContentType(): string;
|
public function getContentType(): ?string;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user