.. _traits-sidelinedmethod: .. _sidelined-method: Sidelined Method ++++++++++++++++ A method, defined in a trait, which is overwritten by a class's method. This makes the trait's method useless and unreachable. It is recommended to check if this is not a typo, as the trait may not be able to work correctly. .. code-block:: php Suggestions ___________ * Check the naming of the function in the class * Use a 'as' expression to rename the trait's method with another name Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Short name | Traits/SidelinedMethod | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Class Review ` | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.5.2 | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------+