diff --git a/src/Repositories/PolicyRepository.php b/src/Repositories/PolicyRepository.php index 11bf239..8bb673e 100644 --- a/src/Repositories/PolicyRepository.php +++ b/src/Repositories/PolicyRepository.php @@ -84,6 +84,7 @@ public function state(User $user) $optional = $policy->optional; /** * @var bool $is_accepted + * * @phpstan-ignore-next-line Access to an undefined property FoF\Terms\Policy::$pivot */ $is_accepted = $userPolicies->has($policy->id) ? $userPolicies->get($policy->id)->pivot->is_accepted : false;