Skip to content

Commit

Permalink
Add wp-compat PHPStan extension
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Sep 18, 2024
1 parent 63ff958 commit 21f5ce3
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"wp-phpunit/wp-phpunit": "^6.5",
"yoast/phpunit-polyfills": "^2.0",
"phpstan/php-8-stubs": "^0.3.84",
"phpstan/phpstan-strict-rules": "^1.6"
"phpstan/phpstan-strict-rules": "^1.6",
"johnbillion/wp-compat": "^0.2.1"
},
"config": {
"allow-plugins": {
Expand Down
78 changes: 77 additions & 1 deletion composer.lock

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

3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/johnbillion/wp-compat/extension.neon
parameters:
level: 8
WPCompat:
requiresAtLeast: '6.5'
treatPhpDocTypesAsCertain: false
paths:
- plugins
Expand Down

0 comments on commit 21f5ce3

Please sign in to comment.