staabm/phpstan-todo-by

expire comment by composer package version

staabm opened this issue · 4 comments

the idea is to expire a comment when a composer dependency is updated to a certain version, because you e.g. might wanne to cleanup some hacks which are currently required but are not longer after updates of said dependency.

a possible syntax could be similar to the version constraint one, but just with an additional composer package name prefixed

// TODO: phpunit/phpunit:<10 This has to be fixed when updating to phpunit 10.x

see phpstan/phpstan#9056


needs a POC and I am not sure yet, whether I like it.

I do have some working rule in a closed source repo I can share

sure, go ahead :)

sorry, you were too fast 😂

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.