MIR1009
WrongCaseFunction
A function is called with a casing that differs from its declaration. While PHP function calls are case-insensitive at runtime, using consistent casing improves readability and avoids confusion.
Example
Section titled “Example”<?phpfunction calculateTotal(float $price): float { return $price * 1.2;}
echo CalculateTotal(10.0); // wrong casing: should be calculateTotalHow to fix
Section titled “How to fix”Update the call site to use the exact casing from the function declaration.