mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 03:59:20 +00:00
Merge branch 'message-id-validator' of github.com:egulias/EmailValidator into message-id-validator
This commit is contained in:
+3
-7
@@ -10,9 +10,8 @@ use Egulias\EmailValidator\Result\Reason\ExpectingATEXT;
|
||||
abstract class Parser
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
* @var Warning\Warning[]
|
||||
*/
|
||||
|
||||
protected $warnings = [];
|
||||
|
||||
/**
|
||||
@@ -73,10 +72,7 @@ abstract class Parser
|
||||
{
|
||||
$this->lexer->moveNext();
|
||||
$this->lexer->moveNext();
|
||||
if ($this->lexer->token['type'] === EmailLexer::S_AT) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return $this->lexer->token['type'] !== EmailLexer::S_AT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user