Skip to content

Commit 563d0cd

Browse files
authored
Issue-257: Fix PHP 7.3 compatibility issues. (#264)
1 parent c7ab280 commit 563d0cd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Validation/DNSCheckValidation.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ public function getWarnings()
9797
*/
9898
protected function checkDns($host)
9999
{
100-
$variant = INTL_IDNA_VARIANT_2003;
101-
if (defined('INTL_IDNA_VARIANT_UTS46')) {
102-
$variant = INTL_IDNA_VARIANT_UTS46;
103-
}
100+
$variant = INTL_IDNA_VARIANT_UTS46;
104101

105102
$host = rtrim(idn_to_ascii($host, IDNA_DEFAULT, $variant), '.') . '.';
106103

0 commit comments

Comments
 (0)