TomasVotruba / class-leak

Find leaking classes that you never use... and get rid of them.
https://tomasvotruba.com/blog/how-to-avoid-maintaining-classes-you-dont-use
MIT License
75 stars 6 forks source link

procedural code is not dected as class usage #13

Closed staabm closed 1 year ago

staabm commented 1 year ago

similar to what was fixed in https://github.com/TomasVotruba/unused-public/pull/79 it seems class-leak is not able to detect when a class is used from a php file which only contains procedural code, but not a class definition

staabm commented 1 year ago

seems I am wrong. the usages are only found if I add the paths to the mentioned procedural files