Skip to content
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

Tests: Use PHPStan 2.0 #86

Merged
merged 5 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"codeception/util-universalframework": "^1.0",
"php-webdriver/webdriver": "<=1.14.0",
"wp-coding-standards/wpcs": "^3.0.0",
"phpstan/phpstan": "^1.7",
"szepeviktor/phpstan-wordpress": "^1.0",
"wp-cli/wp-cli": "2.8.1"
"phpstan/phpstan": "^1.0 || ^2.0",
"szepeviktor/phpstan-wordpress": "^1.0 || ^2.0",
"wp-cli/wp-cli": "2.11"
},
"minimum-stability": "stable",
"config": {
Expand Down
7 changes: 7 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ parameters:
scanDirectories:
- /home/runner/work/convertkit-wordpress-libraries/convertkit-wordpress-libraries/wordpress/wp-content/plugins

# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /home/runner/work/convertkit-wordpress-libraries/convertkit-wordpress-libraries/wordpress/wp-config.php

# Don't report unmatched ignored errors on older PHP versions (7.2, 7.3)
reportUnmatchedIgnoredErrors: false

# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
level: 5
7 changes: 7 additions & 0 deletions phpstan.neon.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ parameters:
scanDirectories:
- /Users/tim/Local Sites/convertkit-github/app/public/wp-content/plugins

# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /Users/tim/Local Sites/convertkit-github/app/public/wp-config.php

# Don't report unmatched ignored errors on older PHP versions (7.2, 7.3)
reportUnmatchedIgnoredErrors: false

# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
level: 5
Loading