Add type hint and return type
This commit is contained in:
parent
e65cf7e9c2
commit
8145e020e4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue