mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-21 03:30:49 +00:00
Remove deprecation, comes from #257
This commit is contained in:
@@ -97,10 +97,7 @@ class DNSCheckValidation implements EmailValidation
|
||||
*/
|
||||
protected function checkDns($host)
|
||||
{
|
||||
$variant = INTL_IDNA_VARIANT_2003;
|
||||
if (defined('INTL_IDNA_VARIANT_UTS46')) {
|
||||
$variant = INTL_IDNA_VARIANT_UTS46;
|
||||
}
|
||||
$variant = INTL_IDNA_VARIANT_UTS46;
|
||||
|
||||
$host = rtrim(idn_to_ascii($host, IDNA_DEFAULT, $variant), '.') . '.';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user