function JsonParser::parseError
Parameters
string $str:
array{text: string, token: string|int, line: int, loc: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected: string[]}|null $hash:
Return value
never
2 calls to JsonParser::parseError()
- JsonParser::failOnBOM in vendor/
seld/ jsonlint/ src/ Seld/ JsonLint/ JsonParser.php - JsonParser::parse in vendor/
seld/ jsonlint/ src/ Seld/ JsonLint/ JsonParser.php - @phpstan-param int-mask-of<self::*> $flags
File
-
vendor/
seld/ jsonlint/ src/ Seld/ JsonLint/ JsonParser.php, line 410
Class
- JsonParser
- Parser class
Namespace
Seld\JsonLintCode
protected function parseError($str, $hash = null) {
throw new ParsingException($str, $hash ?: array());
}