From 64f36afa5a49efce63129f81f3c0f9916951b74f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 15 Oct 2024 12:40:14 +1300 Subject: [PATCH] API Improve type safety for Controller::join_links() --- src/Control/Controller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Control/Controller.php b/src/Control/Controller.php index d1abe672f0b..564457b0eb3 100644 --- a/src/Control/Controller.php +++ b/src/Control/Controller.php @@ -627,9 +627,8 @@ public function redirectedTo() * Caution: All parameters are expected to be URI-encoded already. * * @param string|array $arg One or more link segments, or list of link segments as an array - * @return string */ - public static function join_links($arg = null) + public static function join_links($arg = null): string { if (func_num_args() === 1 && is_array($arg)) { $args = $arg;