Skip to content

test(phpstan): enforce consistently throw constraints - #1062

Merged
ben-challis merged 1 commit into
mainfrom
codex/test-phpstan-consistently-throw-constraints
Jul 30, 2026
Merged

test(phpstan): enforce consistently throw constraints#1062
ben-challis merged 1 commit into
mainfrom
codex/test-phpstan-consistently-throw-constraints

Conversation

@ben-challis

Copy link
Copy Markdown
Owner

Covers toThrow() message constraints on consistently() expectations. The PHPStan rule MUST reject matching: and message: together for ConsistentlyExpectation, as it already does for immediate and eventual expectations. Removing ConsistentlyExpectation support survived the previous full suite; this coverage kills that exact mutant.

@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 addd021 into main Jul 30, 2026
17 checks passed
@ben-challis
ben-challis deleted the codex/test-phpstan-consistently-throw-constraints branch July 30, 2026 13:48
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