Automattic\WooCommerce\Vendor\GraphQL\Language
Lexer::assertValidStringCharacterCode
Method of the class: Lexer{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->assertValidStringCharacterCode( $code, $position ): void;
- $code(int) (required)
- .
- $position(int) (required)
- .
Lexer::assertValidStringCharacterCode() Lexer::assertValidStringCharacterCode code WC 10.9.1
private function assertValidStringCharacterCode(int $code, int $position): void
{
// SourceCharacter
if ($code < 0x0020 && $code !== 0x0009) {
$char = Utils::printCharCode($code);
throw new SyntaxError($this->source, $position, "Invalid character within String: {$char}");
}
}