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 Dec 31, 2019
1 parent 834593d commit 5e911ec
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 @@ -20,7 +20,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 5e911ec

Please sign in to comment.