Skip to content

Commit

Permalink
fix minor error for tense provider
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Sep 9, 2021
1 parent fc92d99 commit e0da717
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Provider/Tense.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function sendRequest()
'user' => $config['user'],
'password' => $config['password'],
'campaign' => $config['campaign'],
'masking' => $config['masking'],
'number' => $number,
'text' => $text,
]
Expand Down Expand Up @@ -78,6 +79,9 @@ public function errorException()
if (!array_key_exists('campaign', $this->senderObject->getConfig())) {
throw new ParameterException('campaign key is absent in configuration');
}
if (!array_key_exists('masking', $this->senderObject->getConfig())) {
throw new ParameterException('masking key is absent in configuration');
}
}

}

0 comments on commit e0da717

Please sign in to comment.