Skip to content

Commit

Permalink
Added support for PHP8.2 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonthebeach authored Dec 16, 2022
1 parent ec1bb54 commit a0da69e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion src/CMText/TextClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TextClient implements ITextClient
/**
* SDK Version constant
*/
const VERSION = '2.2.0';
const VERSION = '2.2.1';


/**
Expand Down

0 comments on commit a0da69e

Please sign in to comment.