Skip to content

Commit f3afedd

Browse files
committed
add composer-normalize
1 parent 39b92ee commit f3afedd

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
- name: Run composer with workaround for PHP 8 and incompatible PHPUnit
8080
if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' }}
8181
run: composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
82+
- name: Check composer.json
83+
run: composer normalize --dry-run
8284
- name: Run tests with coverage
8385
if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }}
8486
run: php vendor/bin/phpunit --coverage-clover=coverage.xml

composer.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "mayflower/mo4-coding-standard",
33
"description": "PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.",
4+
"license": "MIT",
45
"type": "phpcodesniffer-standard",
56
"keywords": [
67
"phpcs",
@@ -9,31 +10,31 @@
910
"standards",
1011
"PSR"
1112
],
12-
"homepage": "https://github.com/mayflower/mo4-coding-standard",
13-
"license": "MIT",
1413
"authors": [
1514
{
1615
"name": "Xaver Loppenstedt",
1716
"email": "xaver@loppenstedt.de"
1817
}
1918
],
19+
"homepage": "https://github.com/mayflower/mo4-coding-standard",
2020
"support": {
2121
"issues": "https://github.com/mayflower/mo4-coding-standard/issues",
2222
"source": "https://github.com/mayflower/mo4-coding-standard"
2323
},
24+
"require": {
25+
"php": "~7.2 || ~8.0",
26+
"dealerdirect/phpcodesniffer-composer-installer": "~0.7",
27+
"escapestudios/symfony2-coding-standard": "^3.10.0",
28+
"slevomat/coding-standard": "^7.0.1",
29+
"squizlabs/php_codesniffer": "^3.6.2"
30+
},
2431
"require-dev": {
32+
"ergebnis/composer-normalize": "^2.19",
2533
"phan/phan": "^5.1.0",
2634
"phpstan/phpstan": "^1.0",
2735
"phpstan/phpstan-strict-rules": "^1.0",
2836
"phpunit/phpunit": "^7.0",
2937
"psalm/plugin-phpunit": "^0.16.1",
3038
"vimeo/psalm": "^4.5.2"
31-
},
32-
"require": {
33-
"php": "~7.2 || ~8.0",
34-
"dealerdirect/phpcodesniffer-composer-installer": "~0.7",
35-
"escapestudios/symfony2-coding-standard": "^3.10.0",
36-
"slevomat/coding-standard": "^7.0.1",
37-
"squizlabs/php_codesniffer": "^3.6.2"
3839
}
3940
}

0 commit comments

Comments
 (0)