Skip to content

PHPStan level 7: correct/tighten PHPDoc types - #1641

Merged
cpeel merged 10 commits into
DistributedProofreaders:masterfrom
bpfoley:phpdoc-type-fixes
Sep 15, 2026
Merged

cpeel merged 10 commits into
DistributedProofreaders:masterfrom
bpfoley:phpdoc-type-fixes

Conversation

@bpfoley

@bpfoley bpfoley commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Using phpstan analyze --level 7 pinc/*.inc exposed a number of cases where the PHPDocs types were either outright wrong in ways that were masked by warning level 6, or could be made more precise.

These patches should all be safe to apply, as they are purely comments that guide PHPStan in CI, and don't influence any runtime checks PHP might do.

@bpfoley
bpfoley requested a review from cpeel September 15, 2026 12:19
@cpeel
cpeel merged commit 8cbe3cf into DistributedProofreaders:master Sep 15, 2026
12 checks passed
@bpfoley
bpfoley deleted the phpdoc-type-fixes branch September 15, 2026 20:03
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.

3 participants