|
15 | 15 | "php-parallel-lint/php-console-highlighter": "^1.0", |
16 | 16 | "php-parallel-lint/php-parallel-lint": "^1.3.1", |
17 | 17 | "phpcompatibility/php-compatibility": "^9.3.5", |
| 18 | + "phpstan/extension-installer": "^1.3", |
| 19 | + "phpstan/phpstan": "^1.11", |
| 20 | + "szepeviktor/phpstan-wordpress": "^1.3", |
18 | 21 | "wp-cli/config-command": "^1 || ^2", |
19 | 22 | "wp-cli/core-command": "^1 || ^2", |
20 | 23 | "wp-cli/eval-command": "^1 || ^2", |
|
28 | 31 | "config": { |
29 | 32 | "allow-plugins": { |
30 | 33 | "dealerdirect/phpcodesniffer-composer-installer": true, |
31 | | - "johnpbloch/wordpress-core-installer": true |
| 34 | + "johnpbloch/wordpress-core-installer": true, |
| 35 | + "phpstan/extension-installer": true |
32 | 36 | }, |
33 | 37 | "sort-packages": true |
34 | 38 | }, |
|
62 | 66 | "bin/run-linter-tests", |
63 | 67 | "bin/run-php-unit-tests", |
64 | 68 | "bin/run-phpcs-tests", |
65 | | - "bin/run-phpcbf-cleanup" |
| 69 | + "bin/run-phpcbf-cleanup", |
| 70 | + "bin/run-phpstan-tests" |
66 | 71 | ], |
67 | 72 | "scripts": { |
68 | 73 | "behat": "run-behat-tests", |
69 | 74 | "behat-rerun": "rerun-behat-tests", |
70 | 75 | "lint": "run-linter-tests", |
71 | 76 | "phpcs": "run-phpcs-tests", |
72 | 77 | "phpcbf": "run-phpcbf-cleanup", |
| 78 | + "phpstan": "run-phpstan-tests", |
73 | 79 | "phpunit": "run-php-unit-tests", |
74 | 80 | "prepare-tests": "install-package-tests", |
75 | 81 | "test": [ |
76 | 82 | "@lint", |
77 | 83 | "@phpcs", |
| 84 | + "@phpstan", |
78 | 85 | "@phpunit", |
79 | 86 | "@behat" |
80 | 87 | ] |
|
0 commit comments