protected function Parser::warnEscaping in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php \Egulias\EmailValidator\Parser\Parser::warnEscaping()
3 calls to Parser::warnEscaping()
- DomainPart::parseDomainComments in vendor/
egulias/ email-validator/ src/ Egulias/ EmailValidator/ Parser/ DomainPart.php - LocalPart::parse in vendor/
egulias/ email-validator/ src/ Egulias/ EmailValidator/ Parser/ LocalPart.php - Parser::parseComments in vendor/
egulias/ email-validator/ src/ Egulias/ EmailValidator/ Parser/ Parser.php
File
- vendor/
egulias/ email-validator/ src/ Egulias/ EmailValidator/ Parser/ Parser.php, line 135
Class
Namespace
Egulias\EmailValidator\ParserCode
protected function warnEscaping() {
if ($this->lexer->token['type'] !== EmailLexer::S_BACKSLASH) {
return false;
}
if ($this->lexer
->isNextToken(EmailLexer::GENERIC)) {
throw new \InvalidArgumentException('ERR_EXPECTING_ATEXT');
}
if (!$this->lexer
->isNextTokenAny(array(
EmailLexer::S_SP,
EmailLexer::S_HTAB,
EmailLexer::C_DEL,
))) {
return false;
}
$this->warnings[] = EmailValidator::DEPREC_QP;
return true;
}