Commit cb14304
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 <[email protected]>
* Fix formatting1 parent dc21a67 commit cb14304
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments