The expression return $name could return the type true which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
45
}
46
47
/**
48
* Get role name.
49
*
50
* @param string $roleId
51
*
52
* @return string
53
*/
54
public static function role(string $roleId): string