Repository navigation
chore: close the type coverage gaps (stray mutant artefact, contract-bound parameters) - #710
Merged
Merged
Conversation
added 2 commits
November 25, 2026 20:45
…ed) and the plugin list command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base:
develop.What changes
src/Auth/.mutant-98777-WordPressGuard.php, a mutation-testing artefact committed by mistake (a8c2e7a, /api/ light mode loads no plugin by default: a security plugin does not protect /api/ routes #678), and ignores.mutant-*in.gitignore.ObjectCacheStore,WordPressHasher,WordPressGuardandPluginListCommand.Store,Hasher,StatefulGuard) are untyped in the contract, so PHP only allowsmixed(a narrower type would break parameter contravariance). They are typedmixed; no behaviour change, no@phpstan-ignore.PluginListCommandhelpers take and returnPluginCollection(own protected methods, not a contract).Type coverage (static measure, CONV-11): 97.54 % -> 98.14 % (140 -> fewer untyped declarations); the 98 % CI floor is met.
Checked
composer qa:fastandcomposer qa: every gate that ran passed (PHPStan, Pint, Rector, Pest incl. arch, deps, surface, ratchet).Not verified
type_coverageis NOT recorded in.harness.jsonon develop (ratchet shows "-"). Protected file, not touched. Maintainer command, from the framework root once merged:vendor/bin/pollora-qa ratchet --update --metric=type_coverage:97.9