From 2ab7324409cf67e25c54252d32b61703e1b56540 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:06:02 +0000 Subject: [PATCH] ref(client-report): Narrow ClientReportAggregator reports key type to drop Mago baseline entry --- analysis-baseline.toml | 6 ------ src/ClientReport/ClientReportAggregator.php | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/analysis-baseline.toml b/analysis-baseline.toml index 2c8f8507a..889bf519e 100644 --- a/analysis-baseline.toml +++ b/analysis-baseline.toml @@ -48,12 +48,6 @@ code = "impossible-condition" message = "This condition (type `false`) will always evaluate to false." count = 1 -[[issues]] -file = "src/ClientReport/ClientReportAggregator.php" -code = "less-specific-argument" -message = 'Argument type mismatch for argument #1 of `Sentry\ClientReport\DiscardedEvent::__construct`: expected `string`, but provided type `array-key` is less specific.' -count = 1 - [[issues]] file = "src/ClientReport/ClientReportAggregator.php" code = "redundant-comparison" diff --git a/src/ClientReport/ClientReportAggregator.php b/src/ClientReport/ClientReportAggregator.php index 32a9aa613..04fe29f28 100644 --- a/src/ClientReport/ClientReportAggregator.php +++ b/src/ClientReport/ClientReportAggregator.php @@ -27,7 +27,7 @@ class ClientReportAggregator * ] *``` * - * @var array> + * @var array> */ private $reports = [];