.. _classes-redefinedproperty: .. _redefined-property: Redefined Property ++++++++++++++++++ Property redefined in a `parent `_ class. Using heritage, it is possible to define several times the same property, at different levels of the hierarchy. When this is the case, it is difficult to understand which class will actually handle the property. In the case of a private property, the different instances will stay distinct. In the case of protected or public properties, they will all share the same value. It is recommended to avoid redefining the same property in a hierarchy. .. code-block:: php Related PHP errors ------------------- + `0 `_ Connex PHP features ------------------- + `property `_ Suggestions ___________ * Remove of the definition Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/RedefinedProperty | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Class Review ` | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------+