mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 03:59:20 +00:00
improve feedback on missing Intl extension (#143)
This commit is contained in:
committed by
Eduardo Gulias Davis
parent
bc31baa11e
commit
14ca3785c1
@@ -13,6 +13,13 @@ class SpoofCheckValidation implements EmailValidation
|
||||
* @var InvalidEmail
|
||||
*/
|
||||
private $error;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
if (!class_exists(Spoofchecker::class)) {
|
||||
throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__));
|
||||
}
|
||||
}
|
||||
|
||||
public function isValid($email, EmailLexer $emailLexer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user