Skip to content

Commit

Permalink
Reset the parser's stack of member names on end of document
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrov committed Jan 13, 2019
1 parent 569695d commit 83ff905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Parser/JsonParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 83ff905

Please sign in to comment.