Bug report
I'm not even sure how to explain, sorry.
Probably it infers something from method_exists and does not print it out?
Code snippet that reproduces the problem
https://phpstan.org/r/62cf8f07-ea60-4d5e-842a-41bd454c0a84
Expected output
No errors?