-
Notifications
You must be signed in to change notification settings - Fork 25
Add initial PHPStan configuration #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
Confirmation that PHPStan runs on GitHub Actions too: https://github.com/wp-cli/wp-cli-tests/actions/runs/15065002933/job/42348320172 |
@@ -15,6 +15,9 @@ | |||
"php-parallel-lint/php-console-highlighter": "^1.0", | |||
"php-parallel-lint/php-parallel-lint": "^1.3.1", | |||
"phpcompatibility/php-compatibility": "dev-develop", | |||
"phpstan/extension-installer": "^1.4.3", | |||
"phpstan/phpstan": "^1.12.26", | |||
"szepeviktor/phpstan-wordpress": "^v1.3.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it is a new addition, it'd be better to start with 2.0?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't, because we currently require PHP 7.2+, but v2 requires PHP 7.4+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok. Makes sense.
Supersedes #204
szepeviktor/phpstan-wordpress
as PHPStan extension for WordPress"phpstan": "run-phpstan-tests",
run-phpstan-tests
file in bin folderFixes #203