Correctly check for intl extension in SpoofCheck (#174)

This commit is contained in:
Tom Sommer
2018-08-13 14:43:59 +02:00
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__));
}
}