Skip to content

Commit

Permalink
Merge pull request #131 from vidmantaskiro/get_phone-fix
Browse files Browse the repository at this point in the history
Fixing get_phone
  • Loading branch information
greta-mik authored Oct 22, 2024
2 parents 488b88c + e8a0931 commit 114e241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnisend/includes/SDK/V1/class-contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '';
}

/**
Expand Down

0 comments on commit 114e241

Please sign in to comment.