laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 671 forks source link

Trying to access array offset on value of type null #831

Closed miradozk closed 4 years ago

miradozk commented 4 years ago

Description:

It's about Laravel\Cashier\Http\Controllers\WebhookController at line 41 and php 7.4 compatibility . https://github.com/laravel/framework/issues/30737

Steps To Reproduce:

driesvints commented 4 years ago

You need to send a POST request with the proper payload to a webhook. You can't just visit it in your browser. This is done by Stripe and a Stripe webhook always contains a "type" key.