Incremented numeric-string should change to int/float
closes https://github.com/phpstan/phpstan/issues/10122 closes https://github.com/phpstan/phpstan/issues/10187
https://3v4l.org/7J17g
This pull request has been marked as ready for review.
I have tested locally that the error in https://github.com/phpstan/phpstan/issues/10187 no longer happens as requested.
if required I can send a strict-rules UselessCastRuleTest regression test, but it feels not necessary.
took me a few attempts to get this work across php versions.. but it should work now
This pull request has been marked as ready for review.
Thank you.