Skip to content

Commit

Permalink
chore: added phpstan ignore to User::$fofTermsPoliciesState.
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryDragonite committed Apr 27, 2024
1 parent 69cb8db commit df7e49a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Repositories/PolicyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ public function state(User $user)
$accepted_at = $userPolicies->has($policy->id) ? Carbon::parse($userPolicies->get($policy->id)->pivot->accepted_at) : null;
$has_update = !$accepted_at || (($policy->terms_updated_at !== null) && $policy->terms_updated_at->gt($accepted_at));
$optional = $policy->optional;

/**
* @var bool $is_accepted
*
* @phpstan-ignore-next-line
*/
$is_accepted = $user->fofTermsPoliciesState->keyBy('id')->get($policy->id)->pivot->is_accepted;

$this->rememberState[$policy->id] = [
Expand Down

0 comments on commit df7e49a

Please sign in to comment.