ergebnis / phpstan-rules

👓 Provides a composer package with rules for phpstan/phpstan.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FinalMethodRule

Slamdunk opened this issue · comments

Hi, following FinalRule for classes I would propose FinalMethodRule for public methods of abstract classes, see https://slamdunk.github.io/blog/when-to-declare-methods-final/

I have a phpstan-extension package too but yours is more focused on strictness, so such a rule would fit better here.

Would you consider a PR for this topic?

Of course the rule would only be active with:

parameters:
	allowAbstractClasses: true

Love it, great idea!

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.