From e8a0931e35183e4aa798b001d7d9ec35250b488a Mon Sep 17 00:00:00 2001 From: Vidmantas Date: Tue, 22 Oct 2024 09:17:26 +0300 Subject: [PATCH] Fixing get_phone --- 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 20177a3..17bd724 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 is_string( $this->phone ) ? $this->phone : ''; } /**