Skip to content

Commit

Permalink
Issue-257: Fix PHP 7.3 compatibility issues. (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
kish0808 authored Sep 19, 2020
1 parent c7ab280 commit 563d0cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Validation/DNSCheckValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ public function getWarnings()
*/
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), '.') . '.';

Expand Down

0 comments on commit 563d0cd

Please sign in to comment.