From ef6ae01b88967d2ddc1a75a129423e8fa4da3f36 Mon Sep 17 00:00:00 2001 From: Mponos George Date: Wed, 11 Dec 2019 19:49:45 +0200 Subject: [PATCH] Fix phpstan --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index c352dc618..ee67f4437 100644 --- a/src/functions.php +++ b/src/functions.php @@ -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;