Skip to content

Commit 5401e11

Browse files
committed
feat(composer): Update dependencies and remove unused packages
- Update the 'symfony/options-resolver' version constraint to support newer versions - Upgrade 'php-mock/php-mock-phpunit' to the latest version - Remove deprecated 'composer-unused', 'infection' and 'php-cs-fixer-config' dependencies - Include 'ergebnis/license' and 'ergebnis/php-cs-fixer-config' for better configuration
1 parent 0aa5525 commit 5401e11

File tree

6 files changed

+8
-29
lines changed

6 files changed

+8
-29
lines changed

.github/workflows/php-cs-fixer.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
run: composer install --no-interaction --prefer-dist --ansi -v
2727

2828
- name: Run php-cs-fixer
29-
# run: composer style-fix
30-
run: ./vendor-bin/php-cs-fixer-config/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots --diff --ansi -v --dry-run
29+
run: composer style-fix
3130

3231
- name: Commit changes
3332
uses: stefanzweifel/git-auto-commit-action@v5

composer-updater

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ $status = (new SingleCommandApplication)
202202
$output = $this
203203
->mustRunCommand("$this->highestComposerBinary outdated --format=json --direct --ansi")
204204
->getOutput(),
205-
strpos($output, '{')
205+
strpos($output, '{'.\PHP_EOL)
206206
),
207207
true
208208
)['installed'],

composer.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,25 @@
8080
"ext-simplexml": "*",
8181
"guzzlehttp/guzzle": "^7.9",
8282
"guzzlehttp/uri-template": "^1.0",
83-
"symfony/options-resolver": "^6.0 || ^7.0"
83+
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0"
8484
},
8585
"require-dev": {
8686
"bamarni/composer-bin-plugin": "^1.8",
8787
"brainmaestro/composer-git-hooks": "^3.0",
8888
"ergebnis/composer-normalize": "^2.45",
89+
"ergebnis/license": "^2.6",
90+
"ergebnis/php-cs-fixer-config": "dev-main",
8991
"ergebnis/rector-rules": "^1.3",
9092
"guanguans/ai-commit": "dev-main",
9193
"guanguans/monorepo-builder-worker": "^1.4",
9294
"illuminate/collections": "^9.52 || ^10.0 || ^11.0 || ^12.0",
9395
"illuminate/support": "^9.52 || ^10.0 || ^11.0 || ^12.0",
9496
"infection/extension-installer": "^0.1",
95-
"maglnet/composer-require-checker": "^4.4",
97+
"infection/infection": "^0.26",
9698
"mockery/mockery": "^1.6",
9799
"pestphp/pest": "^1.23 || ^2.0 || ^3.0",
98100
"pestphp/pest-plugin-faker": "^1.0 || ^2.0 || ^3.0",
99-
"php-mock/php-mock-phpunit": "^2.10",
101+
"php-mock/php-mock-phpunit": "^2.13",
100102
"phpbench/phpbench": "^1.2",
101103
"phpstan/extension-installer": "^1.4",
102104
"phpstan/phpstan": "^2.1",
@@ -109,7 +111,7 @@
109111
"symfony/var-dumper": "^6.0 || ^7.0",
110112
"symfony/yaml": "^6.0 || ^7.0",
111113
"symplify/phpstan-extensions": "^12.0",
112-
"symplify/phpstan-rules": "^14.3",
114+
"symplify/phpstan-rules": "^14.4",
113115
"tomasvotruba/type-coverage": "^2.0"
114116
},
115117
"suggest": {

vendor-bin/composer-unused/composer.json

-5
This file was deleted.

vendor-bin/infection/composer.json

-10
This file was deleted.

vendor-bin/php-cs-fixer-config/composer.json

-7
This file was deleted.

0 commit comments

Comments
 (0)