lint/style/no-redundant-final
In the lint-strict preset. In Rector’s rector/php80 set. Unsafe fix: it can change behavior.
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)FinalPrivateToPrivateVisibility(rector)no-redundant-final(mago-linter)