Skip to content

Commit 26d2e12

Browse files
committed
chore: Add phpstan composer script
1 parent 1ace0ca commit 26d2e12

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ indent_style = tab
1919
indent_style = space
2020
indent_size = 2
2121

22+
[{*.neon}]
23+
indent_style = space
24+
indent_size = 4
25+
2226
[*.md]
2327
trim_trailing_whitespace = false
2428

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@
5858
"phpcs": "run-phpcs-tests",
5959
"phpunit": "run-php-unit-tests",
6060
"prepare-tests": "install-package-tests",
61+
"phpstan": "phpstan analyse --memory-limit=1G",
6162
"test": [
6263
"@lint",
6364
"@phpcs",
65+
"@phpstan",
6466
"@phpunit",
6567
"@behat"
6668
]

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
level: 8
33
editorUrl: 'vscode://file/%%file%%:%%line%%'
44
paths:
5+
- command.php
56
- src/
67
scanFiles:
78
- %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php

0 commit comments

Comments
 (0)