Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix username not being a string resulting in exception #887

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

stayallive
Copy link
Collaborator

This fixes:

Sentry\UserDataBag::setUsername(): Argument #1 ($username) must be of type ?string, int given, called in /vendor/sentry/sentry/src/UserDataBag.php on line 104

Bit of a weird edge case where the username is not a string... but we should cover it!

Also added a few tests for this feature now.

@stayallive stayallive self-assigned this Apr 18, 2024
@stayallive stayallive merged commit 0378a40 into master Apr 18, 2024
24 checks passed
@stayallive stayallive deleted the fix-user-ctx branch April 18, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants