You are here

protected function Parser::validateQuotedPair in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php \Egulias\EmailValidator\Parser\Parser::validateQuotedPair()

validateQuotedPair

1 call to Parser::validateQuotedPair()
DomainPart::doParseDomainLiteral in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php, line 28

Class

Parser

Namespace

Egulias\EmailValidator\Parser

Code

protected function validateQuotedPair() {
  if (!($this->lexer->token['type'] === EmailLexer::INVALID || $this->lexer->token['type'] === EmailLexer::C_DEL)) {
    throw new \InvalidArgumentException('ERR_EXPECTING_QPAIR');
  }
  $this->warnings[] = EmailValidator::DEPREC_QP;
}