===================== Rule ``strict_param`` ===================== Functions should be used with ``$strict`` param set to ``true``. Description ----------- The functions "array_keys", "array_search", "base64_decode", "in_array" and "mb_detect_encoding" should be used with $strict param. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky when the fixed function is overridden or if the code relies on non-strict usage. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\Strict\\StrictParamFixer <./../../../src/Fixer/Strict/StrictParamFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Strict\\StrictParamFixerTest <./../../../tests/Fixer/Strict/StrictParamFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.