Skip to content

Commit

Permalink
make validateMobile method protected to be overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
salehhashemi1992 committed Sep 20, 2023
1 parent a531167 commit e63ad87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OtpManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected function getCacheKey(string $mobile, string $for): string
*
* @throws \InvalidArgumentException
*/
private function validateMobile(string $mobile): void
protected function validateMobile(string $mobile): void
{
if (empty($mobile)) {
throw new \InvalidArgumentException('Mobile number cannot be empty.');
Expand Down

0 comments on commit e63ad87

Please sign in to comment.