diff --git a/src/factories/Entry.php b/src/factories/Entry.php index 19ab72a..f59d5b1 100644 --- a/src/factories/Entry.php +++ b/src/factories/Entry.php @@ -177,7 +177,7 @@ public function inferTypeId(?int $sectionid): ?int $entryTypes->first(); } - return $entryType?->id; + return $entryType->id ?? null; } /**