From e1582eeecbfde741159471e6a296f57744ac38c4 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sat, 23 Mar 2024 21:19:59 +0100 Subject: [PATCH] ci: use Composer dependency analyser (#43) - drop maglnet/composer-require-checker - drop icanhazstring/composer-unused --- .github/workflows/static-analysis.yml | 2 +- composer-dependency-analyser.php | 11 +++++++++++ composer.json | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 composer-dependency-analyser.php diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 2329a96..af4a2c6 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -50,4 +50,4 @@ jobs: uses: "ramsey/composer-install@v1" - name: "Run Composer Unused" - run: "vendor/bin/composer-unused" + run: "vendor/bin/composer-dependency-analyser" diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php new file mode 100644 index 0000000..e86d5bc --- /dev/null +++ b/composer-dependency-analyser.php @@ -0,0 +1,11 @@ +ignoreErrorsOnPackage('phpoption/phpoption', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]); diff --git a/composer.json b/composer.json index cbf0d1a..bdd7203 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,8 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.3", "phpstan/phpstan-phpunit": "^1.0.0", - "phpunit/phpunit": "^10.3" + "phpunit/phpunit": "^10.3", + "shipmonk/composer-dependency-analyser": "^1.4" }, "autoload": { "files": [