Skip to content

Commit eea9467

Browse files
committed
set the php version of composer to 7.2
adds the yoast/phpunit-polyfills install and update composer lock resolve conflicts
1 parent a50f9cd commit eea9467

File tree

4 files changed

+697
-138
lines changed

4 files changed

+697
-138
lines changed

composer.json

+43-20
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,47 @@
11
{
2-
"name": "schlessera/notification-center",
3-
"description": "Notification Center for WordPress (Feature Plugin)",
4-
"type": "wordpress-plugin",
5-
"require-dev": {
6-
"phpunit/phpunit": "^7",
7-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
8-
"wp-coding-standards/wpcs": "^2.3",
9-
"wp-phpunit/wp-phpunit": "^5.6"
2+
"name": "wordpress/wp-feature-notifications",
3+
"description": "Notification Center for WordPress (Feature Plugin)",
4+
"type": "wordpress-plugin",
5+
"require-dev": {
6+
"phpunit/phpunit": "^7",
7+
"yoast/phpunit-polyfills": "1.0.3",
8+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
9+
"wp-coding-standards/wpcs": "^2.3",
10+
"wp-phpunit/wp-phpunit": "^5.6",
11+
"brainmaestro/composer-git-hooks": "^2.8"
12+
},
13+
"license": "GPL-2.0-or-later",
14+
"authors": [
15+
{
16+
"name": "Alain Schlesser",
17+
"email": "[email protected]"
18+
}
19+
],
20+
"minimum-stability": "dev",
21+
"prefer-stable": true,
22+
"scripts": {
23+
"lint": "vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",
24+
"test": "vendor/bin/phpunit",
25+
"lint-fix": "vendor/bin/phpcbf --standard=phpcs.xml.dist includes/",
26+
"cghooks": "vendor/bin/cghooks",
27+
"phpcs-fix": "phpcbf --standard=phpcs.xml.dist includes/",
28+
"post-install-cmd": "cghooks add --ignore-lock",
29+
"post-update-cmd": "cghooks update"
30+
},
31+
"extra": {
32+
"hooks": {
33+
"pre-commit": [
34+
"composer lint-fix && npm run build"
35+
],
36+
"post-merge": "composer install"
37+
}
38+
},
39+
"config": {
40+
"allow-plugins": {
41+
"dealerdirect/phpcodesniffer-composer-installer": true
1042
},
11-
"license": "GPL-2.0-or-later",
12-
"authors": [
13-
{
14-
"name": "Alain Schlesser",
15-
"email": "[email protected]"
16-
}
17-
],
18-
"minimum-stability": "dev",
19-
"prefer-stable": true,
20-
"scripts": {
21-
"lint": "vendor/bin/phpcs",
22-
"test": "vendor/bin/phpunit"
43+
"platform": {
44+
"php": "7.2"
2345
}
46+
}
2447
}

0 commit comments

Comments
 (0)