Bug report
According to the documentation of array_keys, if you specify the second parameter search_value only the keys matching that value are returned. PHPstan seems to believe that it always returns all keys.
Code snippet that reproduces the problem
https://phpstan.org/r/80db9c3d-6084-4a41-80ce-e4a6faebc24e
Expected output
No errors
Bug report
According to the documentation of array_keys, if you specify the second parameter
search_valueonly the keys matching that value are returned. PHPstan seems to believe that it always returns all keys.Code snippet that reproduces the problem
https://phpstan.org/r/80db9c3d-6084-4a41-80ce-e4a6faebc24e
Expected output
No errors