From cd1070cd8df3ee4e721a53413afe84e5de636536 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Mon, 25 Sep 2023 12:16:31 +0200 Subject: [PATCH] fix: accessing uninitialised property `email` --- src/classes/wishthis/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/wishthis/User.php b/src/classes/wishthis/User.php index d100d157..3a3312b7 100644 --- a/src/classes/wishthis/User.php +++ b/src/classes/wishthis/User.php @@ -499,7 +499,7 @@ class User public function getEmail(): string { - return $this->email; + return $this->email ?? ''; } public function setEmail(string $email): void