Skip to content

Commit

Permalink
Merge pull request #12 from rtraselbd/master
Browse files Browse the repository at this point in the history
Updated Mim SMS Error Exception
  • Loading branch information
arif98741 authored Jul 1, 2024
2 parents 42cef94 + 8a0c15a commit 216e2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/Mim.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function errorException()
if (!array_key_exists('apikey', $this->senderObject->getConfig())) {
throw new XenonException('apikey is absent in configuration');
}
if (!array_key_exists('apitoken', $this->senderObject->getConfig())) {
throw new XenonException('apitoken is absent in configuration');
if (!array_key_exists('username', $this->senderObject->getConfig())) {
throw new XenonException('username is absent in configuration');
}
if (strlen($this->senderObject->getMobile()) > 11 || strlen($this->senderObject->getMobile()) < 11) {
throw new XenonException('Invalid mobile number. It should be 11 digit');
Expand Down

0 comments on commit 216e2c3

Please sign in to comment.