变更
This commit is contained in:
@@ -36,7 +36,7 @@ class ConstrictResponse extends Message implements ResponseInterface
|
||||
* @param ContentType $type
|
||||
* @return $this
|
||||
*/
|
||||
public function write(mixed $data, int $statusCode = 200, ContentType $type = ContentType::JSON): static
|
||||
public function write(mixed $data, int $statusCode = 200, ContentType $type = ContentType::HTML): static
|
||||
{
|
||||
if ($data instanceof \Stringable) {
|
||||
$this->getBody()->write($data->__toString());
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ class Response implements ResponseInterface
|
||||
* @param ContentType $type
|
||||
* @return Response
|
||||
*/
|
||||
public function write(mixed $data, int $statusCode = 200, ContentType $type = ContentType::JSON): static
|
||||
public function write(mixed $data, int $statusCode = 200, ContentType $type = ContentType::HTML): static
|
||||
{
|
||||
return $this->__call__(__FUNCTION__, $data, $statusCode, $type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user