Skip to content

Case-(in)sensitivity

Choose a tag to compare

@spaze spaze released this 24 Nov 02:58
5ad6d00

Function names, method names, namespaces are matched irrespective of their case (disallowing print_r will also find print_R calls), while anything else like constants, file names, paths are not. This is similar to how PHP itself works. (#94)

You can also check your code for case-mismatches in general with PHPStan's strict rules, see example.