.. _functions-mismatchparametername: .. _mismatch-parameter-name: Mismatch Parameter Name +++++++++++++++++++++++ Parameter name change in overwritten method. This may lead to errors when using PHP 8.0 named arguments. PHP use the name of the parameter in the method whose code is executed. When the name change between the method and the overwritten method, the consistency is broken. Here is another example, in early PHP 8.0 (courtesy of `Carnage `_). .. code-block:: php Connex PHP features ------------------- + `named-parameter `_ Suggestions ___________ * Make sure all the names are the same, between methods Specs _____ +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Functions/MismatchParameterName | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`CE `, :ref:`Changed Behavior `, :ref:`CompatibilityPHP80 ` | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.1.8 | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | With PHP 8.0 and older | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Community Edition `_, `Exakat Cloud `_ | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+