Bug report
When using ++ as a unary pre operator, then PHPStan seems to disregard the actual return value if its used in a context where a return value makes sense, e.g. a return value, function call, ...
Code snippet that reproduces the problem
https://phpstan.org/r/ebea5aeb-4152-417f-ba73-f924bf3f4dd0
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
When using
++as a unary pre operator, then PHPStan seems to disregard the actual return value if its used in a context where a return value makes sense, e.g. a return value, function call, ...Code snippet that reproduces the problem
https://phpstan.org/r/ebea5aeb-4152-417f-ba73-f924bf3f4dd0
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
No response