You are here

protected function EmailParser::addLongEmailWarning in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php \Egulias\EmailValidator\EmailParser::addLongEmailWarning()

Parameters

string $localPart:

string $parsedDomainPart:

1 call to EmailParser::addLongEmailWarning()
EmailParser::getWarnings in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailParser.php, line 94

Class

EmailParser
EmailParser

Namespace

Egulias\EmailValidator

Code

protected function addLongEmailWarning($localPart, $parsedDomainPart) {
  if (strlen($localPart . '@' . $parsedDomainPart) > self::EMAIL_MAX_LENGTH) {
    $this->warnings[] = EmailValidator::RFC5322_TOOLONG;
  }
}