diff --git a/Makefile b/Makefile index 4a04e22..58f4b68 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ composer-require-checker: ## Ensure we require every package used in this packag $(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=./etc/qa/composer-require-checker.json composer-unused: ## Ensure we don't require any package we don't use in this package directly - $(DOCKER_RUN) vendor/bin/composer-unused --ansi + $(DOCKER_RUN) vendor/bin/composer-unused --ansi --configuration=./etc/qa/composer-unused.php composer-install: ## Install dependencies $(DOCKER_RUN) composer install --no-progress --ansi --no-interaction --prefer-dist -o diff --git a/composer.json b/composer.json index ea73cbb..6698d2f 100644 --- a/composer.json +++ b/composer.json @@ -50,11 +50,6 @@ }, "sort-packages": true }, - "extra": { - "unused": [ - "wyrihaximus/phpstan-react" - ] - }, "scripts": { "post-install-cmd": [ "composer normalize", diff --git a/composer.lock b/composer.lock index cd37508..99501e3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0108907d93b5c5b3d948dfb56aeb8a99", + "content-hash": "0a3e698d7a926ece1d822a2fd4a5f8ce", "packages": [ { "name": "amphp/amp", diff --git a/etc/qa/composer-unused.php b/etc/qa/composer-unused.php new file mode 100644 index 0000000..00c4f0d --- /dev/null +++ b/etc/qa/composer-unused.php @@ -0,0 +1,11 @@ +addNamedFilter(NamedFilter::fromString('wyrihaximus/phpstan-react')); +};