lint/style/require-final-internal-class
Not in any set. Unsafe fix: it can change behaviour.
What it does
Internal classes should be final.
Configuration
[lint.rules]
"style/require-final-internal-class" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
annotation-exclude |
list |
Any | ["@final", "@Entity", "@ORM\\Entity", "@ORM\\Mapping\\Entity", "@Mapping\\Entity", "@Document", "@ODM\\Document"] |
annotation_exclude |
annotation-include |
list |
Any | ["@internal"] |
annotation_include |
consider-absent-docblock-as-internal-class |
bool |
Any | false |
consider_absent_docblock_as_internal_class |
exclude |
list |
Any | ["final", "Entity", "ORM\\Entity", "ORM\\Mapping\\Entity", "Mapping\\Entity", "Document", "ODM\\Document"] |
exclude |
include |
list |
Any | ["internal"] |
include |
Replaces
final_internal_class(php-cs-fixer, risky)