From 202f915b8697bfd742af5d16da91936b4032c45e Mon Sep 17 00:00:00 2001 From: Jaby Sabzali Date: Tue, 23 May 2023 14:12:24 +0330 Subject: [PATCH] Fix error on set mobile smsir driver --- src/Drivers/smsir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drivers/smsir.php b/src/Drivers/smsir.php index 5a95c49..5f3d413 100644 --- a/src/Drivers/smsir.php +++ b/src/Drivers/smsir.php @@ -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');