Skip to content

Commit

Permalink
API Improve type safety for Controller::join_links() (#11426)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Oct 17, 2024
1 parent 6bb9a0b commit 666b409
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Control/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 666b409

Please sign in to comment.