.. _traits-selfusingtrait: .. _self-using-trait: Self Using Trait ++++++++++++++++ Trait uses itself : this is unnecessary. Traits may use themselves, or be used by other traits, that are using the initial trait itself. PHP handles the situation quietly, by ignoring all extra use of the same trait, keeping only one valid version. .. code-block:: php See also `Traits `_. Connex PHP features ------------------- + `trait `_ Suggestions ___________ * Remove the extra usage of the trait. Specs _____ +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Traits/SelfUsingTrait | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Class Review `, :ref:`Dead code ` | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.5.7 | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+