Remove deprecation, comes from #257

This commit is contained in:
Eduardo Gulias Davis
2020-09-19 16:37:33 +02:00
parent e72f606ae3
commit 49b18fbcfc
+1 -4
View File
@@ -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), '.') . '.';