From 3353677eafa9e753cf730eb1985b76d08bef5d0f Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Fri, 5 Jul 2024 22:43:03 +0200 Subject: [PATCH] URI internal codebase improve user information handling --- Components/UserInfo.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Components/UserInfo.php b/Components/UserInfo.php index 312b5bfd6..a8585d567 100644 --- a/Components/UserInfo.php +++ b/Components/UserInfo.php @@ -135,18 +135,12 @@ public function getPass(): ?string public function getUsername(): ?string { - return match ($this->username) { - null => null, - default => Encoder::encodeUser($this->username) - }; + return Encoder::encodeUser($this->username); } public function getPassword(): ?string { - return match ($this->password) { - null => null, - default => Encoder::encodePassword($this->password) - }; + return Encoder::encodePassword($this->password); } /**