Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uselessTrim rule for useless trim() #220

Open
mvorisek opened this issue Jul 3, 2023 · 0 comments
Open

Add uselessTrim rule for useless trim() #220

mvorisek opened this issue Jul 3, 2023 · 0 comments

Comments

@mvorisek
Copy link

mvorisek commented Jul 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant