Skip to content

Commit 0276800

Browse files
committed
Fix Composer issues
1 parent d4dbd21 commit 0276800

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

composer.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "szepeviktor/phpstan-wordpress",
3-
"type": "phpstan-extension",
43
"description": "WordPress extensions for PHPStan",
4+
"license": "MIT",
5+
"type": "phpstan-extension",
56
"keywords": [
67
"static analysis",
78
"code analysis",
89
"code analyse",
910
"wordpress",
1011
"phpstan"
1112
],
12-
"license": "MIT",
1313
"require": {
1414
"php": "^7.1 || ^8.0",
1515
"php-stubs/wordpress-stubs": "^4.7 || ^5.0",
@@ -24,29 +24,34 @@
2424
"phpunit/phpunit": "^7 || ^9",
2525
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
2626
},
27+
"autoload": {
28+
"psr-4": {
29+
"SzepeViktor\\PHPStan\\WordPress\\": "src/"
30+
}
31+
},
32+
"config": {
33+
"allow-plugins": {
34+
"dealerdirect/phpcodesniffer-composer-installer": true
35+
}
36+
},
2737
"extra": {
2838
"phpstan": {
2939
"includes": [
3040
"extension.neon"
3141
]
3242
}
3343
},
34-
"autoload": {
35-
"psr-4": {
36-
"SzepeViktor\\PHPStan\\WordPress\\": "src/"
37-
}
38-
},
3944
"scripts": {
4045
"test": [
4146
"@test:syntax",
4247
"@test:phpunit",
4348
"@test:cs",
4449
"@test:phpstan"
4550
],
46-
"test:phpunit": "phpunit",
4751
"test:cs": "phpcs",
4852
"test:cs:fix": "phpcbf",
4953
"test:phpstan": "phpstan analyze",
54+
"test:phpunit": "phpunit",
5055
"test:syntax": "parallel-lint bootstrap.php src/ tests/"
5156
}
5257
}

0 commit comments

Comments
 (0)