Fix broken getter

This commit is contained in:
Alex Cabal 2025-02-28 11:20:28 -06:00
parent 11e5770413
commit 7b278da43a

View file

@ -30,7 +30,11 @@ class Payment{
* @throws Exceptions\UserNotFoundException
*/
protected function GetUser(): ?User{
return $this->_User ??= User::Get($this->UserId);
if(!isset($this->_User) && $this->UserId !== null){
$this->_User = User::Get($this->UserId);
}
return $this->_User;
}
protected function GetProcessorUrl(): string{