.. _functions-cancelledparameter: .. _cancelled-parameter: Cancelled Parameter +++++++++++++++++++ A parameter is cancelled, when its value is hardcoded, and cannot be changed by the calling expression. The argument is in the signature, but it is later hardcoded to a literal value : thus, it is not usable, from the caller point of view. Reference argument are omitted in this rule, as their value changes, however hardcoded, may have an impact on the calling code. .. code-block:: php Connex PHP features ------------------- + `parameter `_ Suggestions ___________ * Remove the parameter in the method signature Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Functions/CancelledParameter | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.2.0 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+