Skip to content

Commit d42037f

Browse files
authored
Merge pull request #61 from inpsyde/feature/phpstan-wp-stubs
use wp-stubs
2 parents 5ceef1a + 36d2799 commit d42037f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"phpstan/phpstan": "^2.1.1",
3535
"phpstan/phpstan-mockery": "^2.0.0",
3636
"phpstan/phpstan-phpunit": "^2.0.4",
37-
"szepeviktor/phpstan-wordpress": "^2",
3837
"swissspidy/phpstan-no-private": "^v1.0.0",
39-
"phpstan/phpstan-deprecation-rules": "^2.0.1"
38+
"phpstan/phpstan-deprecation-rules": "^2.0.1",
39+
"inpsyde/wp-stubs-versions": "dev-latest"
4040
},
4141
"extra": {
4242
"branch-alias": {

phpstan.neon.dist

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ includes:
33
- vendor/phpstan/phpstan-mockery/extension.neon
44
- vendor/phpstan/phpstan-phpunit/extension.neon
55
- vendor/swissspidy/phpstan-no-private/rules.neon
6-
- vendor/szepeviktor/phpstan-wordpress/extension.neon
76
parameters:
87
level: 8
8+
dynamicConstantNames:
9+
- WP_DEBUG
10+
scanFiles:
11+
- vendor/inpsyde/wp-stubs-versions/latest.php
912
paths:
1013
- src/
1114
- tests/

0 commit comments

Comments
 (0)