You are here

public function EmailParser::getWarnings 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::getWarnings()

File

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

Class

EmailParser
EmailParser

Namespace

Egulias\EmailValidator

Code

public function getWarnings() {
  $localPartWarnings = $this->localPartParser
    ->getWarnings();
  $domainPartWarnings = $this->domainPartParser
    ->getWarnings();
  $this->warnings = array_merge($localPartWarnings, $domainPartWarnings);
  $this
    ->addLongEmailWarning($this->localPart, $this->domainPart);
  return $this->warnings;
}