Skip to content

Commit

Permalink
Merge pull request #86 from Kit/use-phpstan-2.0
Browse files Browse the repository at this point in the history
Tests: Use PHPStan 2.0
  • Loading branch information
n7studios authored Jan 3, 2025
2 parents cf6584f + b2b099d commit 5e22288
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
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

0 comments on commit 5e22288

Please sign in to comment.