You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #387 I get an error when setting the user context.
The monolog RavenHandler stores $previousUserContext which in my app ends up being null (rather than its initial value of false). This happens when RavenHandler sets it to the value of $this->ravenClient->context->user, which at this point is null.
Since #387 I get an error when setting the user context.
The monolog
RavenHandler
stores$previousUserContext
which in my app ends up beingnull
(rather than its initial value offalse
). This happens whenRavenHandler
sets it to the value of$this->ravenClient->context->user
, which at this point isnull
.It then calls
user_context
(see https://github.com/Seldaek/monolog/blob/1.22.0/src/Monolog/Handler/RavenHandler.php#L189 which is the latest release right now -- current master has slightly different code but the same issue) with thatnull
in the$data
, which is not an array, hence the error.I don't know if this is a bug with sentry-php or with the monolog
RavenHandler
, but it's the recent change in behaviour which is causing the error.The text was updated successfully, but these errors were encountered: