Skip to content

Commit a0da69e

Browse files
Added support for PHP8.2 (#48)
1 parent ec1bb54 commit a0da69e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A software development kit to provide ways to interact with CM.com's Text servic
99

1010
### Requirements
1111

12-
- php 7.* or 8.0 or 8.1
12+
- php 7.* or 8.0 or 8.1 or 8.2
1313

1414

1515
## Usage

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cmdotcom/text-sdk-php",
33
"description": "PHP SDK to send messages with CM.com",
44
"type": "library",
5-
"version": "2.2.0",
5+
"version": "2.2.1",
66
"keywords": ["sms","cm.com","rcs","whatsapp","viber","line","wechat","imessage","twitter","instagram"],
77
"homepage": "https://www.cm.com/products/text/",
88
"license": "MIT",

src/CMText/RichContent/Messages/WhatsApp/WhatsAppInteractiveHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
}
2929

3030
$this->type = $type;
31-
$this->text = strlen($text) < 1 ? null : $text;
31+
$this->text = !$text ? null : $text;
3232
$this->media = $media;
3333
}
3434
}

src/CMText/TextClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TextClient implements ITextClient
3232
/**
3333
* SDK Version constant
3434
*/
35-
const VERSION = '2.2.0';
35+
const VERSION = '2.2.1';
3636

3737

3838
/**

0 commit comments

Comments
 (0)