Compare commits

...

2 Commits

Author SHA1 Message Date
Guy Sartorelli
64fab92a57
Merge 25126267af into 666b4094b4 2024-10-18 05:30:36 +13:00
Guy Sartorelli
666b4094b4
API Improve type safety for Controller::join_links() (#11426) 2024-10-17 17:15:24 +13:00

View File

@ -641,9 +641,8 @@ class Controller extends RequestHandler implements TemplateGlobalProvider
* 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;