Skip to content

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.

<?php
function calculateTotal(float $price): float {
return $price * 1.2;
}
echo CalculateTotal(10.0); // wrong casing: should be calculateTotal

Update the call site to use the exact casing from the function declaration.