-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
Description
Pint Version
Pint 1.24.0
PHP Version
8.3.17
Description
For some reason Pint seems to refuse to remove an import that is clearly unused in a file.

sail pint app/Http/Controllers/AccessSites/UpdateAccessSiteControllertest2.php
.
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Laravel
PASS ..................................................................................................................................................................................................................... 1 file
PhpStorm clearly recognizes that the import is unused and offers to remove it, but Pint misses it.
In particular if I remove the word fulfillment
from this comment below does Pint actually determine that the import is unused and removes it
// If the fulfillment center changed, and it was to a value or if the fgs_site_id changed, let's reload the relationships
Steps To Reproduce
- Have a comment that has the same word as the name of an imported class, but does not do a Class::class or any other sort of reference to said class
- Have no references to that class otherwise in the code
- Run pint and see that the import is not removed