This commit is contained in:
2021-09-06 17:28:22 +08:00
parent ae9ca671d1
commit fff8e37e4e
+2 -2
View File
@@ -134,7 +134,7 @@ class Stream implements StreamInterface
public function write($string): int
{
$this->body = $string;
$this->size = strlen($this->body);
$this->size = 0;
return $this->size;
}
@@ -146,7 +146,7 @@ class Stream implements StreamInterface
public function append(string $string): int
{
$this->body .= $string;
$this->size = strlen($this->body);
$this->size = 0;
return $this->size;
}