diff --git a/README.md b/README.md index b517628..5150a94 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A software development kit to provide ways to interact with CM.com's Text servic ### Requirements -- php 7.* or 8.0 or 8.1 +- php 7.* or 8.0 or 8.1 or 8.2 ## Usage diff --git a/composer.json b/composer.json index 3e8a30d..5714ce9 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "cmdotcom/text-sdk-php", "description": "PHP SDK to send messages with CM.com", "type": "library", - "version": "2.2.0", + "version": "2.2.1", "keywords": ["sms","cm.com","rcs","whatsapp","viber","line","wechat","imessage","twitter","instagram"], "homepage": "https://www.cm.com/products/text/", "license": "MIT", diff --git a/src/CMText/RichContent/Messages/WhatsApp/WhatsAppInteractiveHeader.php b/src/CMText/RichContent/Messages/WhatsApp/WhatsAppInteractiveHeader.php index 8a6d239..620b32f 100644 --- a/src/CMText/RichContent/Messages/WhatsApp/WhatsAppInteractiveHeader.php +++ b/src/CMText/RichContent/Messages/WhatsApp/WhatsAppInteractiveHeader.php @@ -28,7 +28,7 @@ public function __construct( } $this->type = $type; - $this->text = strlen($text) < 1 ? null : $text; + $this->text = !$text ? null : $text; $this->media = $media; } } diff --git a/src/CMText/TextClient.php b/src/CMText/TextClient.php index f498536..91291ee 100644 --- a/src/CMText/TextClient.php +++ b/src/CMText/TextClient.php @@ -32,7 +32,7 @@ class TextClient implements ITextClient /** * SDK Version constant */ - const VERSION = '2.2.0'; + const VERSION = '2.2.1'; /**