Nexmo / nexmo-laravel

Add Vonage functionality such as SMS and voice calling to your Laravel app with this Laravel Service Provider.
MIT License
317 stars 79 forks source link

Larastan warnings #65

Closed DanielMalmgren closed 1 year ago

DanielMalmgren commented 2 years ago

I'm analyzing my project with Larastan (https://github.com/nunomaduro/larastan) and it's complaining about my Nexmo code. Not sure if this is an error within nexmo-laravel or within the Larastan check.

The warning is "Call to an undefined static method Nexmo\Laravel\Facade\Nexmo::message()", which seems quite right to me, since I can't find any message() method in that facade. However, my code (pasted below) using that same method works fine, I get the feeling my php knowledge is too limited to understand why.

My simple code: Nexmo::message()->send([ 'to' => $number, 'from' => $sender, 'text' => $message ]);

So, the code works, but the test of it fails. Is there any more meta information that's needed in the facade for it to pass?

Your Environment

SecondeJK commented 1 year ago

This package is officially abandoned in favour of https://github.com/Vonage/vonage-laravel. Please use that, and open tickets in that repo if required, thanks.