Skip to content

Commit a3ecfc9

Browse files
committed
chore: update composer.json with new phpunit versions and add dev scripts
1 parent fffd360 commit a3ecfc9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "webberzone/knowledgebase",
33
"description": "Fastest way to create a highly-flexible multi-product knowledge base.",
4-
"version": "2.3.0",
54
"type": "wordpress-plugin",
65
"keywords": [
76
"knowledge base",
@@ -30,12 +29,18 @@
3029
"dealerdirect/phpcodesniffer-composer-installer": "^1",
3130
"phpcompatibility/phpcompatibility-wp": "^2",
3231
"yoast/phpunit-polyfills": "^3",
33-
"phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5"
32+
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
3433
},
3534
"config": {
3635
"allow-plugins": {
3736
"phpstan/extension-installer": true,
3837
"dealerdirect/phpcodesniffer-composer-installer": true
3938
}
39+
},
40+
"scripts": {
41+
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
42+
"phpstan-baseline": "vendor/bin/phpstan analyse --generate-baseline --memory-limit=2048M",
43+
"phpcs": "vendor/bin/phpcs -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')",
44+
"phpcbf": "vendor/bin/phpcbf -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')"
4045
}
4146
}

0 commit comments

Comments
 (0)