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": [