Skip to content

Commit

Permalink
Add a few more PHPStan extensions to test the minimum WordPress versi…
Browse files Browse the repository at this point in the history
…on and deprecated methods
  • Loading branch information
dkotter committed Sep 26, 2024
1 parent 75c2d2a commit 471c859
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 3 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"yoast/phpunit-polyfills": "^1.0.0",
"szepeviktor/phpstan-wordpress": "dev-master",
"phpstan/extension-installer": "1.4.x-dev",
"php-stubs/wp-cli-stubs": "dev-master"
"php-stubs/wp-cli-stubs": "dev-master",
"johnbillion/wp-compat": "dev-trunk",
"phpstan/phpstan-deprecation-rules": "1.2.x-dev"
},
"scripts": {
"lint": "phpcs -s . --runtime-set testVersion 7.4-",
Expand Down
130 changes: 128 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ parameters:
# These constants are defined but we'd need to stub them for PHPStan to know.
- '#Constant CLASSIFAI_.+ not found#'
- '#Constant WATSON_.+ not found#'
WPCompat:
requiresAtLeast: '6.1'

0 comments on commit 471c859

Please sign in to comment.