fix: allow non-string types in Response::write() to prevent TypeError

pull/664/head
KnifeLemon 2 weeks ago
parent 9ab2695d48
commit dc56ca2c4a

@ -237,7 +237,7 @@ class Response
*
* @return $this Self reference
*/
public function write(string $str, bool $overwrite = false): self
public function write($str, bool $overwrite = false): self
{
if ($overwrite === true) {
$this->clearBody();

Loading…
Cancel
Save