From 8a0c15a8ee94178e68a853ea141d2bfd97445b98 Mon Sep 17 00:00:00 2001 From: Rasel Islam Rafi <31556372+rtraselbd@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:17:28 +0600 Subject: [PATCH] Update Mim.php --- src/Provider/Mim.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Provider/Mim.php b/src/Provider/Mim.php index e231ae0..426e81a 100644 --- a/src/Provider/Mim.php +++ b/src/Provider/Mim.php @@ -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');