Sébastien JEAN
Sébastien JEAN
Here it is: https://github.com/sebj54/debug-belongs-to-through-phpstan You can check the commits to see what I've done in this reproduction project. I reused the tables and relations described in the README of this...
Here are the versions for the relevant packages (I can provide you the full list of changes but I don't think it's relevant): ### Before update ``` larastan/larastan 2.9.8 Larastan...
> Your repository tests `$post->country->id`, but you mean `$post->country?->id`, right (like in your first screenshot)? You're right! I should have used that but unfortunately, I rely a lot on PHPStan...
Do you want me to file an issue there? I don't know if there are other custom relation packages made by someone else but it could be interesting to see...
I opened the issue and a Larastan maintainer pointed out that it works with the `main` branch of this package. I just updated with Composer and can confirm! More info:...
Hi @lucabecchetti, is there something blocking here?