Skip to content

Commit

Permalink
Update Mim.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rtraselbd authored Jul 1, 2024
1 parent 42cef94 commit 8a0c15a
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 8a0c15a

Please sign in to comment.