phpstan-extensions icon indicating copy to clipboard operation
phpstan-extensions copied to clipboard

StringToClassRule: Add option to require strict casing

Open DieterHolvoet opened this issue 2 years ago • 1 comments

My use case: I have some instances of the very simple 'wkt' string and an old school, non-namespaced library declaring a \WKT class. This results in multiple false positives.

I disabled this option by default for backwards compatibility. Another option would be to not make it configurable and require strict casing for all classes, not only internal classes.

DieterHolvoet avatar Jan 11 '23 11:01 DieterHolvoet

Hi, can you add tests for this enhancement?

I've just fixed the build, so also please rebase DieterHolvoet:feature/string-to-class-strict-casing

Slamdunk avatar Jan 11 '23 15:01 Slamdunk