Skip to content

Commit 16213b3

Browse files
committed
QA: WS
1 parent 1a0491c commit 16213b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/php/text/json/Input.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ protected function readObject($nesting) {
9494
if ('}' === $token) {
9595
return new JsonObject();
9696
} else if (null !== $token) {
97-
$result= [];
9897
if (++$nesting > $this->maximumNesting) {
9998
throw new FormatException('Nesting level too deep');
10099
}
100+
101+
$result= [];
101102
do {
102103
$key= $this->valueOf($token, $nesting);
103104
if (!is_string($key)) {

0 commit comments

Comments
 (0)