Skip to content

Commit

Permalink
Fix error on set mobile smsir driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaby Sabzali authored and Jaby Sabzali committed May 23, 2023
1 parent c7fdc09 commit 202f915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/smsir.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function setPatternExceptions()
throw new \Exception('The data must have just one OTP code');

$mobile = $this->numbers;
if ($mobile = [])
if ($mobile == [])
throw new \Exception('The mobile number must be set');
if (count($mobile) > 1)
throw new \Exception('The OTP code must send to just one mobile number');
Expand Down

0 comments on commit 202f915

Please sign in to comment.