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

False Positive StringToClassRule

Open keywan-ghadami-oxid opened this issue 6 years ago • 1 comments

StringToClassRule reports fails positive for a string containing "Error" in my application.

Maybe this rule is not that important anymore because phpstan can report using string where class-string is expected.

A good compromise to reduce chance of fail positives would be to check only for full qualified class names in strings.

keywan-ghadami-oxid avatar Dec 27 '19 20:12 keywan-ghadami-oxid

Any PR is welcome :+1:

Slamdunk avatar Feb 12 '20 10:02 Slamdunk