Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.1', '7.4', '8.0', '8.4']
version: ['7.1', '7.4', '8.0', '8.5']
max-parallel: 2

steps:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.1', '7.4', '8.0', '8.4']
version: ['7.1', '7.4', '8.0', '8.5']
max-parallel: 1

steps:
Expand Down
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.1 through 8.4 (inclusive)
- php 7.1 through 8.5 (inclusive)


## 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": "3.0.1",
"version": "3.0.2",
"keywords": ["sms","cm.com","rcs","whatsapp","viber","line","wechat","imessage","twitter","instagram"],
"homepage": "https://www.cm.com/products/text/",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/CMText/RichContent/Messages/TextMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class TextMessage implements IRichMessage
/**
* TextMessage constructor.
* @param string $Text
* @param string $Tag
* @param string|null $Tag
*/
public function __construct(string $Text, string $Tag = null)
public function __construct(string $Text, ?string $Tag = null)
{
$this->text = $Text;
$this->tag = $Tag;
Expand Down
6 changes: 2 additions & 4 deletions 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 = '3.0.1';
const VERSION = '3.0.2';


/**
Expand Down Expand Up @@ -111,6 +111,7 @@ public function send(
],
CURLOPT_TIMEOUT => 20,
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_FORBID_REUSE => true,
]);

$response = curl_exec($ch);
Expand All @@ -124,9 +125,6 @@ public function send(
}catch (\Exception $exception){
$response = json_encode(['details' => $exception->getMessage()]);
$statuscode = TextClientStatusCodes::UNKNOWN;

}finally{
curl_close($ch);
}

$return = new TextClientResult($statuscode, $response);
Expand Down