Closed ahoiroman closed 10 months ago
Hi @ahoiromanm
Does the issue go away if you add this comment to vendor/staudenmeir/eloquent-has-many-deep/src/HasOneDeep.php
?
/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @extends \Illuminate\Database\Eloquent\Relations\HasOneThrough<TRelatedModel>
*/
class HasOneDeep extends HasManyDeep
{
Hi Jonas,
unfortunately it is not solving the problem. The error is exactly the same.
Could be a caching issue, it works for me. Please run vendor/bin/phpstan clear-result-cache
and try again.
You are right. After clearing the cache it works with the changes you described.
Great. I've released a new version with the comment.
I got this relation:
But unfortunately, phpstan reports:
What can I do about it?