Skip to content

Commit

Permalink
Revert a check that is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Dec 15, 2019
1 parent f280749 commit d56612f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@ function _current_time()
function _idn_uri_convert(UriInterface $uri, $options = 0)
{
if ($uri->getHost()) {
$asciiHost = defined('INTL_IDNA_VARIANT_UTS46')
? idn_to_ascii($uri->getHost(), $options, INTL_IDNA_VARIANT_UTS46, $info)
: idn_to_ascii($uri->getHost(), $options);
$asciiHost = idn_to_ascii($uri->getHost(), $options, INTL_IDNA_VARIANT_UTS46, $info);
if ($asciiHost === false) {
$errorBitSet = isset($info['errors']) ? $info['errors'] : 0;

Expand Down

0 comments on commit d56612f

Please sign in to comment.