phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

Support for `suggest` for Transitive dependencies

Open Simbiat opened this issue 7 months ago • 1 comments

Description:

I have a library that has a class Controller, which has use Simbiat\CuteBytes; in it, which refers another library. This 2nd library is part of composer.json, but not the require block: I use it in suggest block, since this is an optional library, and there is a check for its existence in the code. Yet, I am getting a [EA] The class belongs to a package that is not directly required in composer.json file. Therefore, please actualize composer.json and add the package as a dependency.. Which is valid, since I, indeed, do not require it, but it would be nice if the suggest is also checked so that this warning is not shown.

Simbiat avatar Apr 17 '25 08:04 Simbiat

I've also encountered this problem and don't know where I can turn it off

lait233 avatar Jul 24 '25 06:07 lait233