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
If $key is an integer in the following line, the function call will fail with Uncaught TypeError: Argument 1 passed to Sentry\State\Scope::setExtra() must be of the type string, integer given.
Good catch! I don't have an example in mind of why the $key should not be a string, so I would say that casting is the best solution here. Are you willing to open a PR to fix it?
If $key is an integer in the following line, the function call will fail with
Uncaught TypeError: Argument 1 passed to Sentry\State\Scope::setExtra() must be of the type string, integer given
.sentry-php/src/Monolog/Handler.php
Line 62 in 50f5893
I suggest adding a cast to string there, or possibly making the first argument to setExtra more relaxed.
The text was updated successfully, but these errors were encountered: