Skip to content

Commit

Permalink
prevent type inference on quoted strings, closes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jul 22, 2019
1 parent fab18f3 commit 2db27ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JsonNbtParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ private static function readValue(BinaryStream $stream, string $name = "") : Nam
if($inQuotes){ //anything is allowed inside quotes, except unescaped quotes
if($c === '"'){
$inQuotes = false;
$retval = new StringTag($name, $value);
$foundEnd = true;
}elseif($c === "\\"){
$value .= $stream->get(1);
Expand Down

0 comments on commit 2db27ae

Please sign in to comment.