mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 12:07:59 +00:00
Correctly check for intl extension in SpoofCheck (#174)
This commit is contained in:
committed by
Eduardo Gulias Davis
parent
9dde0df1e3
commit
135444003f
@@ -16,7 +16,7 @@ class SpoofCheckValidation implements EmailValidation
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
if (!class_exists(Spoofchecker::class)) {
|
||||
if (!extension_loaded('intl')) {
|
||||
throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user