mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-11-25 21:42:23 +00:00
Fix types issues
This commit is contained in:
@@ -21,8 +21,8 @@ class IDRightPart extends DomainPart
|
||||
EmailLexer::S_LOWERTHAN => true,
|
||||
];
|
||||
|
||||
if (isset($invalidDomainTokens[$this->lexer->token?->type])) {
|
||||
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain: ' . $this->lexer->token?->value), $this->lexer->token?->value);
|
||||
if (isset($invalidDomainTokens[$this->lexer->current->type])) {
|
||||
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain: ' . $this->lexer->current->value), $this->lexer->current->value);
|
||||
}
|
||||
return new ValidEmail();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user