From 2dd89e609bea3da3024939b7867f0744db17af6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Sat, 18 Jul 2026 19:29:27 +0200 Subject: [PATCH] fix(stats): drop redundant null-coalesce on a guaranteed array key The report array shape always carries unmappedPriceIds, so the ?? [] was dead and tripped larastan's nullCoalesce.offset. No behaviour change. --- app/Console/Commands/SendPriceExperimentFunnelReportCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/SendPriceExperimentFunnelReportCommand.php b/app/Console/Commands/SendPriceExperimentFunnelReportCommand.php index 638cdd68..0142b5c4 100644 --- a/app/Console/Commands/SendPriceExperimentFunnelReportCommand.php +++ b/app/Console/Commands/SendPriceExperimentFunnelReportCommand.php @@ -128,7 +128,7 @@ class SendPriceExperimentFunnelReportCommand extends Command $lines[] = '⚠ REVENUE UNAVAILABLE — Stripe prices could not be loaded; MRR/CM are blank this run.'; } - if (($report['unmappedPriceIds'] ?? []) !== []) { + if ($report['unmappedPriceIds'] !== []) { $lines[] = ''; $lines[] = '⚠ UNMAPPED PRICES — net-active subs on price ids absent from the revenue map ' .'(MRR undercounted as 0): '.implode(', ', $report['unmappedPriceIds'])