From 75ba7f7f8fc2df869b541080e8fec8a908aa8194 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 19 Jun 2019 12:58:10 +0300 Subject: [PATCH] Strings in PHP 7.2 doesn't implement Countable anymore --- src/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Url.php b/src/Url.php index 2d82cc9..9b0aef3 100644 --- a/src/Url.php +++ b/src/Url.php @@ -69,6 +69,6 @@ class Url } } - return count($result) > 0 ? '?' . substr($result, 1) : ''; + return strlen($result) > 0 ? '?' . substr($result, 1) : ''; } }