MIR1010
WrongCaseMethod
A method is called with a casing that differs from its declaration. Although PHP method calls are case-insensitive at runtime, consistent casing is required for clarity and tooling support.
Example
Section titled “Example”<?phpclass Formatter { public function formatDate(\DateTimeInterface $date): string { return $date->format('Y-m-d'); }}
$f = new Formatter();echo $f->FormatDate(new \DateTime()); // wrong casing: should be formatDateHow to fix
Section titled “How to fix”Update the call site to use the exact casing from the method declaration.