Skip to content

Suggestion: Add a (short) reason to each rule #945

@ThomasLandauer

Description

@ThomasLandauer

This has been suggested before (#77 and #461), so just a quick reminder :-)

I'd suggest to just add 1-2 lines lines (plus maybe a link to some source).
Example for https://github.com/ergebnis/phpstan-rules#classesfinalrule

Extensive inheritance leads to unmaintainable structures (A extends B, B extends C, and so forth). A better alternative is to use [link]traits ("Composition over Inheritance").

BTW: The reason for mentioning this now is that I don't understand why named parameters would be a bad idea ;-)
https://github.com/ergebnis/phpstan-rules?tab=readme-ov-file#calllikesnonamedargumentrule

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions