diff --git a/lib/Parser.php b/lib/Parser.php index 0d51351..d7ba85c 100644 --- a/lib/Parser.php +++ b/lib/Parser.php @@ -4,7 +4,7 @@ use Amp\InvalidYieldError; -final class Parser { +class Parser { /** @var \Generator */ private $generator; @@ -49,12 +49,12 @@ public function __construct(\Generator $generator) { * * @return string */ - public function cancel(): string { + final public function cancel(): string { $this->generator = null; return $this->buffer; } - public function push(string $data) { + final public function push(string $data) { if ($this->generator === null) { throw new StreamException("The parser is no longer writable"); }