phpinspectionsea
phpinspectionsea copied to clipboard
Support for `suggest` for Transitive dependencies
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.
I've also encountered this problem and don't know where I can turn it off