-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
96 lines (96 loc) · 2.44 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "johnbillion/wp-compat",
"description": "PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress",
"type": "phpstan-extension",
"authors": [
{
"name": "John Blackbourn",
"homepage": "https://johnblackbourn.com/"
}
],
"keywords": [
"phpstan",
"wordpress"
],
"require": {
"php": ">= 7.4",
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"johnbillion/plugin-infrastructure": "dev-trunk",
"nikic/php-parser": "^5.1",
"php-stubs/wordpress-stubs": "^6.6",
"phpstan/phpstan-phpunit": "2.0.1",
"phpstan/phpstan-strict-rules": "2.0.0",
"phpstan/phpstan-deprecation-rules": "2.0.0",
"phpunit/phpunit": "^9.0",
"roots/wordpress-core-installer": "1.100.0",
"roots/wordpress-full": "^6.7.0",
"wp-coding-standards/wpcs": "3.1.0"
},
"license": "MIT",
"autoload": {
"psr-4": {
"WPCompat\\PHPStan\\": "src/"
}
},
"autoload-dev": {
"classmap": [
"tests/"
]
},
"extra": {
"wordpress-install-dir": "vendor/wordpress/wordpress",
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"config": {
"sort-packages": true,
"preferred-install": "dist",
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true
}
},
"scripts": {
"test": [
"@composer validate --strict --no-check-lock",
"@test:phpunit",
"@test:phpstan",
"@test:phpcs"
],
"test:phpunit": [
"@php -d memory_limit=1024M vendor/bin/phpunit"
],
"test:phpcs": [
"phpcs -ps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs.json --basepath='./' ."
],
"test:phpcbf": [
"phpcbf -p --colors --basepath='./' ."
],
"test:phpstan": [
"phpstan analyze -v --memory-limit=1024M"
],
"generate": "@php generate.php vendor/wordpress/wordpress"
},
"suggest": {
"phpstan/phpstan-deprecation-rules": "PHPStan rules for detecting usage of deprecated symbols",
"swissspidy/phpstan-no-private": "PHPStan rules for detecting usage of pseudo-private functions, classes, and methods",
"szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
},
"support": {
"issues": "https://github.com/johnbillion/wp-compat/issues",
"source": "https://github.com/johnbillion/wp-compat"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/johnbillion"
}
]
}