Skip to content

Commit

Permalink
fixing improper null check
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Sep 30, 2024
1 parent 43bef3d commit 30ed0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function inferTypeId(?int $sectionid): ?int
$entryTypes->first();
}

return $entryType?->id;
return $entryType->id ?? null;
}

/**
Expand Down

0 comments on commit 30ed0f5

Please sign in to comment.