FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: document null as an accepted metric attribute value by JulienChavee · Pull Request #2185 · getsentry/sentry-php · GitHub

fix: document null as an accepted metric attribute value - #2185

Merged
Litarnus merged 1 commit into
getsentry:masterfrom
JulienChavee:master
Aug 26, 2026
Merged

fix: document null as an accepted metric attribute value#2185
Litarnus merged 1 commit into
getsentry:masterfrom
JulienChavee:master

Conversation

Copy link
Copy Markdown
Contributor

Description

Attribute::tryFromValue() already accepts null and converts it to the string "null", but the public metric attribute type declarations (array<string, int|float|string|bool>) excluded null. This meant static analysis rejected null attribute values even though they work correctly at runtime, forcing callers (and wrapper implementations) to suppress type errors.

Issues

resolves: #2182

JulienChavee changed the title fix: document null as an accepted metric attribute value (#2) fix: document null as an accepted metric attribute value Aug 24, 2026

Litarnus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the contribution!

Litarnus merged commit 49e2249 into getsentry:master Aug 26, 2026
51 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics - Document null as an accepted attribute value (Attribute::tryFromValue() already supports it)

2 participants


Back | FazBrowse Home | New Git URL