Skip to content

Increase PHPStan level to 5 and fix all reported errors#1114

Merged
dkotter merged 3 commits into
update/phpstan-level-4from
update/phpstan-level-5
Jun 15, 2026
Merged

Increase PHPStan level to 5 and fix all reported errors#1114
dkotter merged 3 commits into
update/phpstan-level-4from
update/phpstan-level-5

Conversation

@dkotter

@dkotter dkotter commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Description of the Change

Note

This is branched from #1113 to try and keep PRs as small as possible.

This PR updates our PHPStan config to level 5 and fixes all newly flagged errors.

How to test the Change

Mainly just ensuring all tests pass on this PR. If desired, can do smoke testing across the entire plugin

Changelog Entry

Developer - Increase PHPStan from level 4 to level 5 and fix all new errors.

Credits

Props @dkotter

Checklist:

Open WordPress Playground Preview

@dkotter dkotter added this to the 3.9.0 milestone Jun 12, 2026
@dkotter dkotter self-assigned this Jun 12, 2026
@dkotter dkotter requested review from a team and jeffpaul as code owners June 12, 2026 17:32

@jeffpaul jeffpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all these, feel free to go ahead and merge all the way down

@dkotter dkotter merged commit ee39822 into update/phpstan-level-4 Jun 15, 2026
24 checks passed
@dkotter dkotter deleted the update/phpstan-level-5 branch June 15, 2026 19:24
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.

2 participants