Skip to content

Commit

Permalink
loading in symfony polyfill, partially resolves egulias#177, but Spoo…
Browse files Browse the repository at this point in the history
…fChecker does not seem to be polyfilled in symfony/polyfill-intl-*
  • Loading branch information
SignpostMarv committed Sep 1, 2019
1 parent b8e3ff8 commit b273c62
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 b273c62

Please sign in to comment.