Skip to content

ref(tracing): Document Span::setMetricsSummary value type to drop PHPStan baseline entry - #2362

Merged
Litarnus merged 1 commit into
masterfrom
junior/baseline-span-set-metrics-summary-value
Nov 13, 2026
Merged

Litarnus merged 1 commit into
masterfrom
junior/baseline-span-set-metrics-summary-value

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Removes this entry from phpstan-baseline.neon:

Method Sentry\Tracing\Span::setMetricsSummary() has parameter $value with no type specified. (missingType.parameter, src/Tracing/Span.php)

This adds @param string|int|float $value to the deprecated no-op Span::setMetricsSummary(). That's the type the method had when it was introduced in #1619, and the docblock lost it when the metrics API became a no-op.

It only changes a docblock on a method with an empty body, so there's no runtime or public API change. PHPStan reports no errors, Mago reports no new issues, and the tests/Tracing suite passes.

The $tags entry for the same method is left for a separate PR so each change stays one baseline entry.

via automation sched_a59acc45df166a80a839d0b32321e740 · Run ID sched_a59acc45df166a80a839d0b32321e740:1794582238204.

--

View Session [Sentry]

@sentry-junior
sentry-junior Bot requested review from a team and stayallive as code owners November 13, 2026 15:08
@Litarnus
Litarnus merged commit f55afd0 into master Nov 13, 2026
58 checks passed
@Litarnus
Litarnus deleted the junior/baseline-span-set-metrics-summary-value branch November 13, 2026 15:16
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.

1 participant