bugsnag / bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
https://docs.bugsnag.com/platforms/php/laravel/
MIT License
876 stars 129 forks source link

Make app->config->get() always return an array #463

Closed szepeviktor closed 3 years ago

szepeviktor commented 3 years ago

Goal

When config/bugsnag.php is missing it causes an error

Argument 2 passed to Bugsnag\BugsnagLaravel\BugsnagServiceProvider::setupEvents()
must be of the type array, null given

@imjoehaines

luke-belton commented 3 years ago

Hi @szepeviktor - I can't reproduce the error that you're seeing by omitting a config/bugsnag.php file. Do you still have the file vendor/bugsnag/bugsnag-laravel/config/bugsnag.php?

What version of bugsnag-laravel are you using and are you integrating Bugsnag into a laravel or lumen project? Please could you provide us with a reproduction example?

szepeviktor commented 3 years ago

Do you still have the file vendor/bugsnag/bugsnag-laravel/config/bugsnag.php?

@luke-belton Thank you for your kind response.

The error occurred during deployment/composer install.