.. _multiple-final-modifiers-are-not-allowed:
Multiple final modifiers are not allowed
----------------------------------------
.. meta::
:description:
Multiple final modifiers are not allowed: One mention of the ``final`` option is sufficient to make a method so.
:og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png
:og:type: article
:og:title: Multiple final modifiers are not allowed
:og:description: One mention of the ``final`` option is sufficient to make a method so
:og:url: https://php-errors.readthedocs.io/en/latest/messages/multiple-final-modifiers-are-not-allowed.html
:og:locale: en
:twitter:card: summary_large_image
:twitter:site: @exakat
:twitter:title: Multiple final modifiers are not allowed
:twitter:description: Multiple final modifiers are not allowed: One mention of the ``final`` option is sufficient to make a method so
:twitter:creator: @exakat
:twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png
.. raw:: html
Description
___________
One mention of the ``final`` option is sufficient to make a method so.
Example
_______
.. code-block:: php
Solutions
_________
+ Keep only one mention of ``final``.
Changed Behavior
________________
This error may appear following an evolution in behavior, in previous versions. See ` `_.