mohammad-fouladgar / laravel-mobile-verification

This package provides convenient methods for making token code, sending and verifying mobile phone verification requests.
https://medium.com/@mohammadfouladgarphp/laravel-mobile-verification-e330a8fbecfc
MIT License
447 stars 36 forks source link

Unhandled match case 'backoff' #182

Open ibnIrshad opened 5 months ago

ibnIrshad commented 5 months ago

This error occurs at SendMobileVerificationNotificationQueueable.php: 13 right after registering the user.

See full stack trace here. I have no idea what caused it as it was working fine before. Regardless it seems there should be a match handling case for the "backoff" case, whatever that means. I can't fix it myself because I don't know what the backoff case is supposed to do.


class SendMobileVerificationNotificationQueueable extends AbstractMobileVerificationListener implements ShouldQueue
{
    public function __get(string $name): mixed
    {
        return match ($name) {
            'tries' => config('mobile_verifier.queue.tries'),
            'timeout' => config('mobile_verifier.queue.timeout'),
            'connection' => config('mobile_verifier.queue.connection'),
            'queue' => config('mobile_verifier.queue.queue'),
        };
    }
}
mohammad-fouladgar commented 4 months ago

Please explain more about your error. I think you should check out your queue config.