.. _structures-suspiciouscomparison: .. _suspicious-comparison: Suspicious Comparison +++++++++++++++++++++ The comparison seems to be misplaced. A comparison happens in the last argument, while the actual function expect another type : this may be the case of a badly placed parenthesis. Original idea by `Vladimir Reznichenko `_. .. code-block:: php Connex PHP features ------------------- + `comparison `_ Suggestions ___________ * Remove the comparison altogether * Move the comparison to its right place : that, or more the parenthesis. * This may be what is intended : just leave it. Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/SuspiciousComparison | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.11.0 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-phpipam-structures-suspiciouscomparison`, :ref:`case-expressionengine-structures-suspiciouscomparison` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+