Skip to content

Drop the repeated previous_nb_actions key in DashboardTest - #25198

Merged
sgiehl merged 1 commit into
matomo-org:6.x-devfrom
darkdi:dup-array-key-dashboardtest
Sep 4, 2026
Merged

sgiehl merged 1 commit into
matomo-org:6.x-devfrom
darkdi:dup-array-key-dashboardtest

Conversation

@darkdi

@darkdi darkdi commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

'previous_nb_actions' => 0 is written twice inside each of the three expected site arrays in DashboardTest, once next to previousRange and again down in the previous_* block. PHP keeps the first position and the last value for a repeated key, so the second one has never changed what the array holds.

I dropped the second occurrence rather than the first for that reason. The array that comes out is the same as before, both in values and in key order.

Checklist

  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules

@sgiehl sgiehl added this to the 6.0.0 milestone Sep 4, 2026
@sgiehl sgiehl added the c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. label Sep 4, 2026
@sgiehl
sgiehl enabled auto-merge (squash) September 4, 2026 12:39
@sgiehl
sgiehl merged commit 378d443 into matomo-org:6.x-dev Sep 4, 2026
175 of 178 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: Tests & QA For issues related to automated tests or making it easier to QA & test issues.

Development

Successfully merging this pull request may close these issues.

2 participants