Skip to content

fix(formatters): strip duplicate keys from Extra Data section#41

Merged
Naoray merged 1 commit intomainfrom
fix/strip-extra-data-duplicates
Feb 8, 2026
Merged

fix(formatters): strip duplicate keys from Extra Data section#41
Naoray merged 1 commit intomainfrom
fix/strip-extra-data-duplicates

Conversation

@Naoray
Copy link
Copy Markdown
Owner

@Naoray Naoray commented Feb 8, 2026

Summary

  • ExtraFormatter now excludes the same dedicated-section keys that ContextFormatter already strips (exception, environment, request, route, route_summary, user, queries, job, command, outgoing_requests, session, livewire, livewire_originating_page, inertia)
  • Uses Illuminate\Support\Arr::except() for consistency with ContextFormatter
  • Added tests verifying that dedicated-section keys are excluded and that the formatter returns an empty string when only excluded keys are present

Closes #32

Test plan

  • Existing ExtraFormatterTest tests pass unchanged
  • New test: it excludes keys that have dedicated sections -- verifies all 14 keys are stripped while custom keys remain
  • New test: it returns empty string when all keys are excluded -- verifies empty output when only section keys exist
  • Full test suite passes (281 tests, 878 assertions)

🤖 Generated with Claude Code

Closes #32

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Naoray Naoray merged commit 544b1a7 into main Feb 8, 2026
11 checks passed
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.

Strip duplicate keys from Extra Data section

1 participant