-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The situation:
- We have a dependency on
cebe/php-openapiin a project - Our project also uses
league/openapi-psr7-validator - That validator requires
devizzent/cebe-php-openapi, a fork ofcebe/php-openapiwith support for OpenAPI 3.1 (which is whyopenapi-psr7-validatoruses it). Thedevizzent/cebe-php-openapifork indicates its drop-in-compatibility withcebe/php-openapiusing a composerreplaceconstraint.
As a consequence, our project that requires cebe/php-openapi ends up with devizzent/cebe-php-openapi in its vendor folder instead. When now running composer-dependency-analyser this gives two errors:
Found 1 shadow dependency!
(those are used, but not listed as dependency in composer.json)
• devizzent/cebe-php-openapi
e.g. cebe\openapi\ReferenceContext in <redacted>:221 (+ 78 more)
Found 1 unused dependency!
(those are listed in composer.json, but no usage was found in scanned paths)
• cebe/php-openapi
It would be great if composer-dependency-analyser could take replace-constraints into account, so that the dependencies are considered valid in such a situation.
janedbal
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request