改名
This commit is contained in:
@@ -134,7 +134,7 @@ class Stream implements StreamInterface
|
|||||||
public function write($string): int
|
public function write($string): int
|
||||||
{
|
{
|
||||||
$this->body = $string;
|
$this->body = $string;
|
||||||
$this->size = strlen($this->body);
|
$this->size = 0;
|
||||||
return $this->size;
|
return $this->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ class Stream implements StreamInterface
|
|||||||
public function append(string $string): int
|
public function append(string $string): int
|
||||||
{
|
{
|
||||||
$this->body .= $string;
|
$this->body .= $string;
|
||||||
$this->size = strlen($this->body);
|
$this->size = 0;
|
||||||
return $this->size;
|
return $this->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user