Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 66b23d8

Browse files
committed
fix for php 7.4
1 parent 028282f commit 66b23d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/items/FractalAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ public function shouldUseCustomFindForModel():bool
246246

247247
public function getIdParamType(): string
248248
{
249+
if (!isset($this->params[$this->idParam]['type'])) {
250+
return 'string';
251+
}
249252
return $this->params[$this->idParam]['type'] === 'integer' ? 'int' : 'string';
250253
}
251254
}

0 commit comments

Comments
 (0)