Multiple final modifiers are not allowed¶
Description¶
One mention of the final option is sufficient to make a method so.
Example¶
<?php
class X {
final final function foo() {}
}
?>
Solutions¶
Keep only one mention of
final.
Changed Behavior¶
This error may appear following an evolution in behavior, in previous versions. See ` <https://php-changed-behaviors.readthedocs.io/en/latest/behavior/.html>`_.