inspections of class names with different capitalization

hi,

today i noticed that phpstorm does not inspect class names written with different capitalization:

class DateAndTime { ... }

phpstorm does not nag about:

dateAndTime::now()

or

dateandtime::now()

that´s very strange... i did not find anything at the inspections settings, so i am really consufed here....

thanks for any help!
micha

1

I'd like to have the inspection for every names, and not only for classes.

0

Hi there,

 

There is one for PHP – “Case mismatch in method or call usage”

“Reports the usages of functions, methods, classes, and namespaces that do not match the case used in their declarations.”

0

My dream would be to detect case mismatch in also such a sentence :

$eventPlaceCounters[$place][$getEvent] = ($eventplaceCounters[$place][$getEvent] ?? 0) + 1;

or -in general- when a name differs from other one just by capitalization of a letter.

0

Writing on a 10 year old posting, amazing 😁👍

0

请先登录再写评论。