Check if user context is array (fix fatal error) (#272)
Check if user context is array (fix fatal error) (#272)

* Check if user context is array

Prevents potential fatal error as the argument for Scope::setUser  must be of type array

* Make sure user is always an array

If user array is invalid, Sentry will display a warning.
This ensures the context is not silently ignored.

Co-Authored-By: Alex Bouma <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@alexbouma.me>

* Fix formatting

getsentry/sentry-laravel,getsentry/sentry-laravel