mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Improve type safety for Controller::join_links() (#11426)
This commit is contained in:
parent
6bb9a0b33d
commit
666b4094b4
@ -627,9 +627,8 @@ class Controller extends RequestHandler implements TemplateGlobalProvider
|
|||||||
* Caution: All parameters are expected to be URI-encoded already.
|
* 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
|
* @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)) {
|
if (func_num_args() === 1 && is_array($arg)) {
|
||||||
$args = $arg;
|
$args = $arg;
|
||||||
|
Loading…
Reference in New Issue
Block a user