Skip to content

Commit

Permalink
loading in symfony polyfill, partially resolves #177, but SpoofChecke…
Browse files Browse the repository at this point in the history
…r does not seem to be polyfilled in symfony/polyfill-intl-*
  • Loading branch information
SignpostMarv committed Jan 19, 2019
1 parent da2e0c6 commit c504af2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EmailValidator/Validation/DNSCheckValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DNSCheckValidation implements EmailValidation

public function __construct()
{
if (!extension_loaded('intl')) {
if (!function_exists('idn_to_ascii')) {
throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__));
}
}
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"require": {
"php": ">= 5.5",
"doctrine/lexer": "^1.0.1"
"doctrine/lexer": "^1.0.1",
"symfony/polyfill-intl-idn": "^1.10"
},
"require-dev" : {
"satooshi/php-coveralls": "^1.0.1",
Expand Down

0 comments on commit c504af2

Please sign in to comment.