diff --git a/app/controllers/profile.php b/app/controllers/profile.php index 7738bb3323aedd155255fdc6ceece14fc6165e57..72a500e20d2f4f7b6e6100fa09c68d4ed78953dc 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -659,12 +659,8 @@ class ProfileController extends AuthenticatedController /** * Returns the visibility value - * - * @param string $param - * @param string $visibility - * @return string|bool */ - private function getVisibilityValue(string $param, string $visibility = ''): string|bool + private function getVisibilityValue(string $param, string $visibility = ''): mixed { if (Visibility::verify($visibility ?: $param, $this->current_user->user_id)) { return $this->current_user->$param;