From ae3cc7d8837c981bad8671b94387cab13f98971a Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 15 Aug 2020 18:25:29 +0200 Subject: [PATCH] Only return false in readValue when isEnded is already true --- JSONStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONStream.php b/JSONStream.php index 089eaf5..6d7f5c1 100644 --- a/JSONStream.php +++ b/JSONStream.php @@ -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()