From 5368f38753a3e655ed3d7d7dfc7af2cc22de7980 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 10 Jan 2025 08:13:09 +0100 Subject: Reduce undeeded use of elvis operator ?: (#7204) --- lib/Minz/Url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Minz') diff --git a/lib/Minz/Url.php b/lib/Minz/Url.php index f388054fc..f849ec6b6 100644 --- a/lib/Minz/Url.php +++ b/lib/Minz/Url.php @@ -170,11 +170,11 @@ class Minz_Url { } } -function _url(string $controller, string $action, int|string ...$args): string|false { +function _url(string $controller, string $action, int|string ...$args): string { $nb_args = count($args); if ($nb_args % 2 !== 0) { - return false; + return ''; } $params = []; -- cgit v1.2.3