Repository navigation
Update PHPStan to 2.3 - #82
Merged
Merged
Conversation
PHPStan 1.12 to 2.3, with szepeviktor/phpstan-wordpress 1.3 to 2.0 (which brings WordPress stubs 6.9 to 7.1). The code needed no changes. Two config entries did: - excludePaths: tests does not exist in this repository, which PHPStan 2 refuses; marked optional as tests (?). - The ignore for missingType.generics matched nothing on PHPStan 2 and is reported as unused; removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
|
Test on Playground |
Composer package changes
|
ilicfilip
marked this pull request as ready for review
October 8, 2026 11:59
jdevalk
approved these changes
Oct 8, 2026
jdevalk
left a comment
Member
There was a problem hiding this comment.
No actionable issues found. Verified the dependency and configuration changes against commit 9718e8e in an isolated checkout: Composer validation, locked dependency installation, platform requirements, PHPStan analysis of all eight PHP files, and code style checks pass. All nine CI checks also pass.
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.
Updates PHPStan to 2.3.0, the release with the big performance work (PHPStan 2.3: a leap in performance).
What changes
A major update, from PHPStan 1.12.32:
composer.json:phpstan/phpstan^1.10→^2.0,szepeviktor/phpstan-wordpress^1.3→^2.0.composer.lock: phpstan/phpstan 2.3.0, szepeviktor/phpstan-wordpress 2.0.4, php-stubs/wordpress-stubs 6.9.0 → 7.1.2; symfony/polyfill-php73 is no longer needed.phpstan.neon.dist, two fixes PHPStan 2 required. The code itself needed no changes.testsdoesn't exist in this repository, which PHPStan 2 refuses, so it is marked optional astests (?).missingType.genericsignore matched nothing on PHPStan 2 and was reported as unused, so it is removed.Checked
🤖 Generated with Claude Code