Skip to content

Commit

Permalink
relaxing types
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Feb 18, 2024
1 parent 69e3dbf commit feff0bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factories/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function author(\craft\web\User|string|int $user)
*
* @internal
*/
public function inferSectionId()
public function inferSectionId(): ?int
{
if (is_a($this->sectionIdentifier, \craft\models\Section::class)) {
$section = $this->sectionIdentifier;
Expand All @@ -158,7 +158,7 @@ public function inferSectionId()
*
* @internal
*/
public function inferTypeId(?int $sectionid): int
public function inferTypeId(?int $sectionid): ?int
{
$entryTypes = collect();
if ($sectionid) {
Expand Down

0 comments on commit feff0bc

Please sign in to comment.