From 06fe1e286226445d3371d371334762f66340acad Mon Sep 17 00:00:00 2001 From: Vidmantas Date: Mon, 21 Oct 2024 15:11:30 +0300 Subject: [PATCH] get_phone return type fix --- omnisend/includes/SDK/V1/class-contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnisend/includes/SDK/V1/class-contact.php b/omnisend/includes/SDK/V1/class-contact.php index 09da9fd..20177a3 100644 --- a/omnisend/includes/SDK/V1/class-contact.php +++ b/omnisend/includes/SDK/V1/class-contact.php @@ -562,7 +562,7 @@ public function set_phone( $phone ): void { * @return string */ public function get_phone(): string { - return $this->phone; + return $this->phone ?: ''; } /**