lint/style/no-redundant-final
In the modernize set. Unsafe fix: it can change behaviour.
What it does
Removes final from methods where possible.
Configuration
[lint.rules]
"style/no-redundant-final" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
private-methods |
bool |
Any | true |
private_methods |
Replaces
no_unneeded_final_method(php-cs-fixer, risky)no-redundant-final(mago-linter)