CodeExplorer RFCWarnings example
public function isValid(string
$email, EmailLexer
$emailLexer) : bool
{ if (!parent::
isValid($email,
$emailLexer)) { return false;
} if (empty($this->
getWarnings())) { return true;
} $this->error =
new InvalidEmail(new RFCWarnings(), ''
);
return false;
} /**
* {@inheritdoc}
*/
public function getError() : ?InvalidEmail
{ return $this->error ?: parent::
getError();
}}