Bug report
When calling RedisCluster::multi() from phpredis, PHPStan infers the return type as Redis.
However, according to the official phpredis stubs, the return type should be RedisCluster|bool.
redis_cluster.stub.php
Code snippet that reproduces the problem
https://phpstan.org/r/3aadbdea-c0b2-4d2f-bc06-990960c41cf4
Expected output
Result should be inferred as RedisCluster|bool.
Did PHPStan help you today? Did it make you happy in any way?
No response