mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-27 18:48:40 +00:00
Redefine parser signature
This commit is contained in:
+2
-2
@@ -69,12 +69,12 @@ class EmailParser
|
||||
return new InvalidEmail(new NoLocalPart(), $this->lexer->token["value"]);
|
||||
}
|
||||
|
||||
$localPartResult = $this->localPartParser->parse($str);
|
||||
$localPartResult = $this->localPartParser->parse();
|
||||
if ($localPartResult->isInvalid()) {
|
||||
return $localPartResult;
|
||||
}
|
||||
|
||||
$domainPartResult = $this->domainPartParser->parse($str);
|
||||
$domainPartResult = $this->domainPartParser->parse();
|
||||
if ($domainPartResult->isInvalid()) {
|
||||
return $domainPartResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user