From 8145e020e4ac7ddf1f09ec54b9ae393fa02a4e26 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 27 May 2021 22:49:57 +0800 Subject: [PATCH] Add type hint and return type --- classes/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/helper.php b/classes/helper.php index 7e06431..30267f6 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -47,7 +47,7 @@ class helper { * @param string $tableprefix table query prefix to use in front of each field. * @return string All name fields. */ - public static function get_all_user_name_fields($tableprefix = '') { + public static function get_all_user_name_fields(string $tableprefix = ''): string { $alternatenames = []; foreach (fields::get_name_fields() as $field) { $alternatenames[$field] = $field;