Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saifallak committed Jul 25, 2024
1 parent 3cf768c commit e5ef16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cloudwa.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
/**
* @throws ConnectionException
*/
public static function fetchSharedOTPNumbers(): array|Collection
public function fetchSharedOTPNumbers(): array|Collection
{
return cache()->remember('cloudwa-shared-otp-numbers', 60 * 60, function () {
$team = config('cloudwa.team_id');
Expand Down Expand Up @@ -172,7 +172,7 @@ public static function generateWaCallback(string $reference, string $code): arra
{
$team = config('cloudwa.team_id');
$phone = config('cloudwa.otp.shared')
? self::fetchSharedOTPNumbers()->random(1)->first()
? (new self)->fetchSharedOTPNumbers()->random(1)->first()
: config('cloudwa.otp.number');

return [
Expand Down

0 comments on commit e5ef16f

Please sign in to comment.