Skip to content

Commit 772be7d

Browse files
committed
Replace composer-unused and composer-require-checker with composer-dependency-analyzer
1 parent 2411730 commit 772be7d

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/php.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
with:
166166
# Should be the higest supported version, so we can use the newest tools
167167
php-version: '8.5'
168-
tools: composer, composer-require-checker, composer-unused
168+
tools: composer, composer-dependency-analyser
169169
extensions: ctype, date, dom, filter, hash, intl, mbstring, opcache, openssl, pcre, sodium, spl, xml
170170

171171
- name: Setup problem matchers for PHP
@@ -189,20 +189,16 @@ jobs:
189189
- name: Install Composer dependencies
190190
run: composer install --no-progress --prefer-dist --optimize-autoloader
191191

192-
- name: Check code for hard dependencies missing in composer.json
193-
run: composer-require-checker check --config-file=tools/composer-require-checker.json composer.json
194-
195-
- name: Check code for unused dependencies in composer.json
192+
- name: Check code for unused or hard dependencies missing in composer.json
196193
run: |
197-
composer-unused \
198-
--excludePackage=icanhazstring/composer-unused \
199-
--excludePackage=phpstan/phpstan \
200-
--excludePackage=phpstan/extension-installer \
201-
--excludePackage=phpstan/phpstan-mockery \
202-
--excludePackage=phpstan/phpstan-phpunit \
203-
--excludePackage=slevomat/coding-standard \
204-
--excludePackage=squizlabs/php_codesniffer \
205-
--excludePackage=symfony/phpunit-bridge
194+
composer-dependency-analyser \
195+
--ignore-unused-deps=phpstan/phpstan \
196+
--ignore-unused-deps=phpstan/extension-installer \
197+
--ignore-unused-deps=phpstan/phpstan-mockery \
198+
--ignore-unused-deps=phpstan/phpstan-phpunit \
199+
--ignore-unused-deps=slevomat/coding-standard \
200+
--ignore-unused-deps=squizlabs/php_codesniffer \
201+
--ignore-unused-deps=symfony/phpunit-bridge
206202
207203
- name: PHP Code Sniffer
208204
run: vendor/bin/phpcs

0 commit comments

Comments
 (0)