Skip to content

test(phpstan): retain first matcher declaration - #1041

Merged
ben-challis merged 1 commit into
mainfrom
codex/test-matcher-map-first-declaration
Jul 30, 2026
Merged

test(phpstan): retain first matcher declaration#1041
ben-challis merged 1 commit into
mainfrom
codex/test-matcher-map-first-declaration

Conversation

@ben-challis

Copy link
Copy Markdown
Owner

Matcher diagnostics must identify the first declaration when identical signatures repeat before a conflict. Replacing the first-write assignment with an unconditional assignment currently survives the complete suite and changes the reported source path. Add a focused test that pins first-declaration provenance through an aliased identical configuration path.

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@ben-challis
ben-challis changed the base branch from codex/fix-test-metadata-nonfinite-diagnostics to main July 30, 2026 11:12
@ben-challis
ben-challis merged commit c0e976d into main Jul 30, 2026
17 checks passed
@ben-challis
ben-challis deleted the codex/test-matcher-map-first-declaration branch July 30, 2026 13:49
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