Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix: analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Oct 24, 2024
1 parent dc9a36d commit 8eafe79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stubs/app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public function joinable(): MorphTo
*/
public function hasRequestedToJoin(mixed $model)
{
return $this->joinable && $this->joinable->id === $model->id;
/** @var Organization */
$joinable = $this->joinable;
return $joinable && $joinable->id === $model->id;
}

/**
Expand Down

0 comments on commit 8eafe79

Please sign in to comment.