diff --git a/src/Parser/JsonParser.php b/src/Parser/JsonParser.php index 13240c6..ad28774 100644 --- a/src/Parser/JsonParser.php +++ b/src/Parser/JsonParser.php @@ -107,6 +107,7 @@ public function read() goto value; case self::$stateDocumentEnd: + $names = [null]; if ($token[0] !== Tokenizer::T_EOF) { throw new ParseException($this->getExceptionMessage($token)); }