Skip to content

Commit

Permalink
Fix php5.3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 1, 2022
1 parent a398f40 commit 3610afb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Seld/JsonLint/JsonParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Seld/JsonLint/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 3610afb

Please sign in to comment.