You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please send a pull request in phpstan/phpstan-src that updates file resources/functionMap.php instead. Thank you.
I don't have the time for that right now but would like to document what I found here so someone else can flesh it out.
I found that PHPStan complained that RedisArray::keys may not return false, but PhpStorm's stubs said it can.
Digging a little deeper I found that at some point in time the phpredis stubs have been updated, and consequently also the Psalm ones. Don't know who updated PhpStorm stubs, but obviously PHPStan missed it.
Actually PHPStan not only missed the false possibility but is also too strict regarding the array structure.
We found that RedisArray::keys returns array<string, list<string>> while PHPStan says it's an array of strings.
I don't have the time for that right now but would like to document what I found here so someone else can flesh it out.
I found that PHPStan complained that RedisArray::keys may not return false, but PhpStorm's stubs said it can.
Digging a little deeper I found that at some point in time the phpredis stubs have been updated, and consequently also the Psalm ones. Don't know who updated PhpStorm stubs, but obviously PHPStan missed it.
Related:
The text was updated successfully, but these errors were encountered: