composer-deps-analyzer icon indicating copy to clipboard operation
composer-deps-analyzer copied to clipboard

Add strict isOnlyDevDependency() to check for dev dependencies

Open clue opened this issue 10 years ago • 2 comments

The current DependencyEdge::isDevDependency() is a bit ambiguous with regards to mixed dev- and non-dev-dependencies: Source packages that list the dependency in both "require-dev" and "require" will only create a single edge that is considered to be a dev dependency.

This PR suggests to add a new DependencyEdge::isOnlyDevDependency() method to provide a stricter check for when a package is only listed in "require-dev" instead.

clue avatar Mar 29 '14 00:03 clue

This would be nice to have... will this be merged any time soon or do we need to use a fork?

Potherca avatar Feb 11 '15 14:02 Potherca

This will be done?

gpupo avatar Apr 15 '15 18:04 gpupo