TomasVotruba / unused-public

Find Unused Public Elements in Your Code
https://tomasvotruba.com/blog/can-phpstan-find-dead-public-methods/
MIT License
151 stars 12 forks source link

add e2e test case for #52 #91

Closed simPod closed 7 months ago

simPod commented 1 year ago

TomasVotruba\UnusedPublic\Tests\Simpod\Factory\SomeFactory::create() is called

I have reproduced the issue from https://github.com/TomasVotruba/unused-public/issues/52

TomasVotruba commented 7 months ago

This is expected to be reported, as method is used only in tests. This means it's either helper test class or unused code.

In the first case, it should be marked with @api explicitly, to avoid false positive on used method. In latter case should be removed :+1: