function JsonParser::failOnBOM
Parameters
string $input:
Return value
void
1 call to JsonParser::failOnBOM()
- 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 599
Class
- JsonParser
- Parser class
Namespace
Seld\JsonLintCode
private function failOnBOM($input) {
// UTF-8 ByteOrderMark sequence
$bom = "";
if (substr($input, 0, 3) === $bom) {
$this->parseError("BOM detected, make sure your input does not include a Unicode Byte-Order-Mark");
}
}