Skip to content

Commit 5964075

Browse files
committed
DROPME: phpstan setup
1 parent a8ed41a commit 5964075

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"squizlabs/php_codesniffer": "3.10.3",
2121
"wp-coding-standards/wpcs": "~3.1.0",
2222
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
23-
"yoast/phpunit-polyfills": "^1.1.0"
23+
"yoast/phpunit-polyfills": "^1.1.0",
24+
"phpstan/phpstan": "^2.0"
2425
},
2526
"config": {
2627
"allow-plugins": {

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 2
3+
phpVersion: 70224
4+
paths:
5+
- src/wp-includes/html-api/class-wp-css-selectors.php
6+
scanDirectories:
7+
- src/wp-includes/html-api

0 commit comments

Comments
 (0)