roslov / psr12ext

PSR-12 Extended Coding Standard
MIT License
3 stars 1 forks source link

`final` for non-abstract classes #15

Closed roslov closed 2 years ago

roslov commented 2 years ago

Add final to all non-abstract classes.

Probably the Entity folder should be excluded from the search to comply the Symfony framework (under discussion).

roslov commented 2 years ago

The sniff can be taken here: https://github.com/matthewbdaly/abstract-or-final-sniff

See: https://github.com/slevomat/coding-standard/issues/1204

roslov commented 2 years ago

Related question: https://github.com/matthewbdaly/abstract-or-final-sniff/issues/2

roslov commented 2 years ago

My PR https://github.com/slevomat/coding-standard/pull/1306 has been merged. Probably, it will appear in v8.0.

roslov commented 2 years ago

Implemented in Slevomat Coding Standard v7.1.0.

roslov commented 2 years ago

Implemented in #23.