Skip to content

Commit

Permalink
remove mobile number length verification
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Jan 26, 2022
1 parent 0f2d174 commit 2e98cd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ public function send()
if (Helper::numberValidation($this->getMobile()) == false) {
throw new ValidationException('Invalid Mobile Number');
}
if (strlen($this->getMobile()) > 11 || strlen($this->getMobile()) < 11) {
throw new ParameterException('Invalid mobile number. It should be 11 digit');
}

if (empty($this->getMessage()))
throw new ParameterException('Message should not be empty');

Expand Down

0 comments on commit 2e98cd6

Please sign in to comment.