Skip to content

Commit 21f5ce3

Browse files
committed
Add wp-compat PHPStan extension
Resolves WordPress#1535
1 parent 63ff958 commit 21f5ce3

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"wp-phpunit/wp-phpunit": "^6.5",
3333
"yoast/phpunit-polyfills": "^2.0",
3434
"phpstan/php-8-stubs": "^0.3.84",
35-
"phpstan/phpstan-strict-rules": "^1.6"
35+
"phpstan/phpstan-strict-rules": "^1.6",
36+
"johnbillion/wp-compat": "^0.2.1"
3637
},
3738
"config": {
3839
"allow-plugins": {

composer.lock

Lines changed: 77 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
includes:
22
- phar://phpstan.phar/conf/bleedingEdge.neon
3+
- vendor/johnbillion/wp-compat/extension.neon
34
parameters:
45
level: 8
6+
WPCompat:
7+
requiresAtLeast: '6.5'
58
treatPhpDocTypesAsCertain: false
69
paths:
710
- plugins

0 commit comments

Comments
 (0)