diff options
| author | 2025-01-10 08:13:09 +0100 | |
|---|---|---|
| committer | 2025-01-10 08:13:09 +0100 | |
| commit | 5368f38753a3e655ed3d7d7dfc7af2cc22de7980 (patch) | |
| tree | decb975aa750660cea965bf61399df2335493b9d /lib | |
| parent | 3280ec617f8081bf0d5349e441ae564a42fdc500 (diff) | |
Reduce undeeded use of elvis operator ?: (#7204)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Url.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 = []; |
