Skip to content

Commit

Permalink
fixing missing first/bad return
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Feb 18, 2024
1 parent 3197fa2 commit 69e3dbf
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
$className = $reflector->getShortName();
$typeHandle = lcfirst($className);
$entryType = $entryTypes->where('handle', $typeHandle)->first() ??
$entryTypes->where('handle', 'default') ??
$entryTypes->where('handle', 'default')->first() ??
$entryTypes->first();
}

Expand Down

0 comments on commit 69e3dbf

Please sign in to comment.