Skip to content

Commit a52949d

Browse files
committed
Add Composer's allow-plugins
1 parent 29d7ca9 commit a52949d

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

composer.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
{
22
"name": "php-stubs/wordpress-stubs",
33
"description": "WordPress function and class declaration stubs for static analysis.",
4+
"license": "MIT",
45
"keywords": [
56
"wordpress",
67
"static analysis",
78
"phpstan"
89
],
910
"homepage": "https://github.com/php-stubs/wordpress-stubs",
10-
"license": "MIT",
11-
"replace": {
12-
"giacocorsiglia/wordpress-stubs": "*"
13-
},
1411
"require-dev": {
1512
"php": "~7.3 || ~8.0",
16-
"phpdocumentor/reflection-docblock": "^5.3",
13+
"nikic/php-parser": "< 4.12.0",
1714
"php-stubs/generator": "^0.8.0",
18-
"phpstan/phpstan": "^1.2",
19-
"nikic/php-parser": "< 4.12.0"
15+
"phpdocumentor/reflection-docblock": "^5.3",
16+
"phpstan/phpstan": "^1.2"
17+
},
18+
"replace": {
19+
"giacocorsiglia/wordpress-stubs": "*"
2020
},
2121
"suggest": {
22-
"szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan",
2322
"paragonie/sodium_compat": "Pure PHP implementation of libsodium",
24-
"symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions"
23+
"symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
24+
"szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
2525
},
2626
"minimum-stability": "stable",
27+
"config": {
28+
"allow-plugins": {
29+
"php-stubs/generator": true
30+
}
31+
},
2732
"scripts": {
2833
"post-install-cmd": "@composer --working-dir=source/ update --no-interaction",
29-
"post-update-cmd" : "@composer --working-dir=source/ update --no-interaction",
34+
"post-update-cmd": "@composer --working-dir=source/ update --no-interaction",
3035
"cleanup": "git status --short --ignored | sed -n -e 's#^!! ##p' | xargs -r rm -vrf"
3136
},
3237
"scripts-descriptions": {

source/composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
"ext-sodium": "*",
1010
"johnpbloch/wordpress": "5.9.1"
1111
},
12-
"minimum-stability": "stable"
12+
"minimum-stability": "stable",
13+
"config": {
14+
"allow-plugins": {
15+
"johnpbloch/wordpress-core-installer": true
16+
}
17+
}
1318
}

0 commit comments

Comments
 (0)