diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fdada88..9021240 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -99,8 +99,8 @@ jobs:
name: 'Check coding standard'
run: 'bin/phing create-dirs cs || cat build/log/phpcs-checkstyle.xml | cs2pr'
- composer-require-checker:
- name: 'Composer require check'
+ composer-dependencies:
+ name: 'Composer dependencies'
needs: 'lint'
runs-on: 'ubuntu-latest'
@@ -123,8 +123,8 @@ jobs:
with:
dependency-versions: 'highest'
-
- name: 'Check missing Composer requires'
- run: 'bin/phing composer-require-checker'
+ name: 'Analyze Composer dependencies'
+ run: 'bin/phing composer-dependencies'
tests:
name: 'Tests - PHP ${{ matrix.php-version }}, ${{ matrix.composer-dependencies }} dependencies'
diff --git a/build.xml b/build.xml
index c182d04..5980d4f 100644
--- a/build.xml
+++ b/build.xml
@@ -11,7 +11,8 @@
-
+
+
@@ -29,7 +30,7 @@
phplint,
cs,
tests,
- composer-require-checker
+ composer-dependencies
"/>
@@ -43,13 +44,15 @@
-
+
+ >
+
+
@@ -80,6 +83,7 @@
+
diff --git a/build/composer-dependency-analyser.config.php b/build/composer-dependency-analyser.config.php
new file mode 100644
index 0000000..e917b83
--- /dev/null
+++ b/build/composer-dependency-analyser.config.php
@@ -0,0 +1,21 @@
+enableAnalysisOfUnusedDevDependencies();
+$config = $config->addPathToScan(__DIR__, true);
+
+// tools
+$config = $config->ignoreErrorsOnPackages([
+ 'consistence/coding-standard',
+ 'phing/phing',
+ 'php-parallel-lint/php-console-highlighter',
+ 'php-parallel-lint/php-parallel-lint',
+], [ErrorType::UNUSED_DEPENDENCY]);
+
+return $config;
diff --git a/composer.json b/composer.json
index bec4b88..41aa850 100644
--- a/composer.json
+++ b/composer.json
@@ -18,11 +18,11 @@
"ext-simplexml": "*",
"consistence/coding-standard": "3.10.1",
"doctrine/annotations": "1.14.2",
- "maglnet/composer-require-checker": "2.0",
"php-parallel-lint/php-console-highlighter": "1.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phing/phing": "2.17.2",
- "phpunit/phpunit": "8.5.25"
+ "phpunit/phpunit": "8.5.25",
+ "shipmonk/composer-dependency-analyser": "1.8.1"
},
"autoload": {
"psr-4": { "Consistence\\JmsSerializer\\": [ "src" ] },