.. _attributes-deprecated: .. _deprecated-attribute: Deprecated Attribute ++++++++++++++++++++ The Deprecated `attribute `_ marks a class, method, property, class constants and functions that should not be used anymore. The element is still usable in the current version, and it might be removed in a future version. The full description of the deprecation include ``#[Deprecated(reason: '', replacement: '')]``. The reason parameter is a human readable reason for the change; the replacement parameter is a replacement suggestion. Only the `attribute `_ is used in this rule. .. code-block:: php foo(); ?> See also `#[Deprecated] `_. Connex PHP features ------------------- + `deprecation `_ Suggestions ___________ * Replace this call to another call, that is future proof. Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Attributes/Deprecated | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Attributes `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.6.8 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+