Skip to content

Commit 3a69293

Browse files
dev: update PHPStan and set to level 6 (#2659)
1 parent 33c688a commit 3a69293

File tree

4 files changed

+3312
-165
lines changed

4 files changed

+3312
-165
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@
2020
"automattic/vipwpcs": "^1.0.0",
2121
"phpunit/phpunit": "9.6.5",
2222
"yoast/phpunit-polyfills": "^4.0",
23-
"phpstan/phpstan": "^1.10",
24-
"szepeviktor/phpstan-wordpress": "^1.3",
23+
"phpstan/phpstan": "^2.1",
2524
"php-stubs/woocommerce-stubs": "^9.1",
2625
"php-stubs/acf-pro-stubs": "^6.0",
27-
"spaze/phpstan-stripe": "^2.4",
28-
"wpackagist-plugin/woocommerce": "*"
26+
"wpackagist-plugin/woocommerce": "*",
27+
"szepeviktor/phpstan-wordpress": "^2.0"
2928
},
3029
"license": "GPL-2.0+",
3130
"authors": [
@@ -39,6 +38,7 @@
3938
"format": "phpcbf",
4039
"phpunit": "phpunit",
4140
"phpstan": "phpstan analyse --memory-limit 2G",
41+
"phpstan:generate:baseline": "phpstan analyse --memory-limit 2G --generate-baseline",
4242
"format-dist": "phpcbf --standard=phpcs.export.xml"
4343
},
4444
"prefer-stable": true,

composer.lock

Lines changed: 18 additions & 157 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)