Skip to content

test(phpstan): allow nullable constructor services - #1067

Merged
ben-challis merged 1 commit into
codex/fix-test-metadata-nonfinite-diagnosticsfrom
codex/test-phpstan-nullable-constructor-service
Jul 30, 2026
Merged

test(phpstan): allow nullable constructor services#1067
ben-challis merged 1 commit into
codex/fix-test-metadata-nonfinite-diagnosticsfrom
codex/test-phpstan-nullable-constructor-service

Conversation

@ben-challis

Copy link
Copy Markdown
Owner

A required nullable object parameter is still resolvable as a constructor service. Add a nullable Service to the valid PHPStan probe so the rule must remove null before checking the object type. Removing that normalization survived the previous suite and this case kills the exact mutant.

@ben-challis
ben-challis merged commit dd9c7c8 into codex/fix-test-metadata-nonfinite-diagnostics Jul 30, 2026
16 checks passed
@ben-challis
ben-challis deleted the codex/test-phpstan-nullable-constructor-service branch July 30, 2026 10:30
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