vimeo / psalm

A static analysis tool for finding errors in PHP applications
https://psalm.dev
MIT License
5.55k stars 659 forks source link

RedundantConditionGivenDocblockType given on strpos! #10352

Open ghost opened 11 months ago

ghost commented 11 months ago

Hello!

When I check my string if it contains a dot "." or not, then I get a strange RedundantConditionGivenDocblockType error, which is unreasonable considering I am not checking if the string is empty but I am actually looking for a specific character within the string.

https://psalm.dev/r/e73d796449

Thank you.

psalm-github-bot[bot] commented 11 months ago

I found these snippets:

https://psalm.dev/r/e73d796449 ```php