phpstan/phpstan-strict-rules

Add `uselessTrim` rule for useless `trim()`

mvorisek opened this issue · 0 comments

This is a feature request to add uselessTrim like there is uselessCast.

repro: https://phpstan.org/r/daf97ab2-6a1b-4d54-a48e-d7503026c1c8

It should be possible for numeric-string, empty-string and known const strings.