diff --git a/src/Seld/JsonLint/JsonParser.php b/src/Seld/JsonLint/JsonParser.php index 4985d20..b0e4986 100644 --- a/src/Seld/JsonLint/JsonParser.php +++ b/src/Seld/JsonLint/JsonParser.php @@ -398,7 +398,7 @@ public function parse($input, $flags = 0) */ protected function parseError($str, $hash = null) { - throw new ParsingException($str, $hash ?: []); + throw new ParsingException($str, $hash ?: array()); } /** diff --git a/src/Seld/JsonLint/Lexer.php b/src/Seld/JsonLint/Lexer.php index a8dbbba..bb5cd5f 100644 --- a/src/Seld/JsonLint/Lexer.php +++ b/src/Seld/JsonLint/Lexer.php @@ -209,7 +209,7 @@ private function next() } $this->parseError( - 'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition(), + 'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition() ); }