-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid read from CallMap when methods are in inheritance #3406
Comments
Hey @simPod, can you reproduce the issue on https://psalm.dev ? |
I don't think Psalm is mistaken here. Both documentation and extension source code says there's no method Basically |
Psalm reports
RdKafka\Producer
extendsRdKafka
.This is correctly defined in CallMap:
However, psalm assigns
RdKafka::newTopic
definition toRdKafka\Producer::newTopic
and thinks it returnsRdKafka\Topic
while it returnsRdKafka\ProducerTopic
.https://github.com/simPod/psalm-kafka-broken/commit/58962588fc16d046cdc69ddbd16e77b9d34f4914#diff-3e3f7392d7da765a65d0ece9729444aaR14
The text was updated successfully, but these errors were encountered: