Only return false in readValue when isEnded is already true

pull/3/head
Markus Mittendrein 2020-08-15 18:25:29 +02:00
parent 8607a7f516
commit ae3cc7d883
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class JSONStream
$v = $this->readToken();
} while (count($this->in) > $n);
$value = $v;
return ($this->in[count($this->in)-1][0] == 1);
return true;
}
public function unreadBuffer()