Skip to content

Commit 3610afb

Browse files
committed
Fix php5.3 build
1 parent a398f40 commit 3610afb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Seld/JsonLint/JsonParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public function parse($input, $flags = 0)
398398
*/
399399
protected function parseError($str, $hash = null)
400400
{
401-
throw new ParsingException($str, $hash ?: []);
401+
throw new ParsingException($str, $hash ?: array());
402402
}
403403

404404
/**

src/Seld/JsonLint/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private function next()
209209
}
210210

211211
$this->parseError(
212-
'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition(),
212+
'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition()
213213
);
214214
}
215215

0 commit comments

Comments
 (0)