Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Dec 11, 2019
1 parent 3ebf6fc commit ef6ae01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Expand Up @@ -336,7 +336,7 @@ function _current_time()
function _idn_uri_convert(UriInterface $uri, $options = 0)
{
if ($uri->getHost()) {
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : null;
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : 0;
$asciiHost = idn_to_ascii($uri->getHost(), $options, $variant, $info);
if ($asciiHost === false) {
$errorBitSet = isset($info['errors']) ? $info['errors'] : 0;
Expand Down

0 comments on commit ef6ae01

Please sign in to comment.