Add type hint and return type
This commit is contained in:
parent
e65cf7e9c2
commit
8145e020e4
|
@ -47,7 +47,7 @@ class helper {
|
||||||
* @param string $tableprefix table query prefix to use in front of each field.
|
* @param string $tableprefix table query prefix to use in front of each field.
|
||||||
* @return string All name fields.
|
* @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 = [];
|
$alternatenames = [];
|
||||||
foreach (fields::get_name_fields() as $field) {
|
foreach (fields::get_name_fields() as $field) {
|
||||||
$alternatenames[$field] = $field;
|
$alternatenames[$field] = $field;
|
||||||
|
|
Loading…
Reference in a new issue