Skip to content

MIR1011

WrongCaseClass

A class, interface, or enum is referenced with casing that differs from its declaration. PHP class name resolution is case-insensitive at runtime, but consistent casing is expected by autoloaders and static analysis tools.

<?php
class HttpClient {}
$client = new httpclient(); // wrong casing: should be HttpClient

Update the reference to use the exact casing from the class/interface/enum declaration.