Skip to content

Allow enum $this in match without direct-object-comparison errors#60

Merged
voku merged 12 commits intomasterfrom
copilot/fix-match-direct-object-comparison-error
Apr 26, 2026
Merged

Allow enum $this in match without direct-object-comparison errors#60
voku merged 12 commits intomasterfrom
copilot/fix-match-direct-object-comparison-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 26, 2026

  • Re-run PHPUnit and PHPStan to confirm a clean baseline
  • Inspect match/switch rule fixtures for the next missing behavior
  • Add failing regression expectations for nested object-method usage inside boolean-style match/switch arms
  • Implement the minimal rule fix for nested boolean condition analysis
  • Re-run focused PHPUnit, full PHPUnit, PHPStan, and final validation

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 26, 2026

Coverage Report for CI Build 24965532630

Coverage increased (+0.4%) to 94.935%

Details

  • Coverage increased (+0.4%) from the base build.
  • Patch coverage: 65 of 65 lines across 4 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 928
Covered Lines: 881
Line Coverage: 94.94%
Coverage Strength: 20.36 hits per line

💛 - Coveralls

@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 24964090850

Coverage remained the same at 94.554%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 863
Covered Lines: 816
Line Coverage: 94.55%
Coverage Strength: 20.96 hits per line

💛 - Coveralls

Copilot AI changed the title [WIP] Fix incorrect 'Match_: Do not compare objects directly' error for enums Allow enum $this in match without direct-object-comparison errors Apr 26, 2026
Copilot finished work on behalf of voku April 26, 2026 18:41
Copilot AI requested a review from voku April 26, 2026 18:41
@voku voku marked this pull request as ready for review April 26, 2026 18:42
Copilot AI and others added 2 commits April 26, 2026 19:02
Copilot finished work on behalf of voku April 26, 2026 19:50
Copilot finished work on behalf of voku April 26, 2026 19:54
@voku voku merged commit baafdab into master Apr 26, 2026
10 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.

"Match_: Do not compare objects directly" error incorrectly reported for $this usage in match when $this is an enum

3 participants