Skip to content

Commit a7afc7f

Browse files
committed
Add type annotation for $id in forModel method.
1 parent 183114e commit a7afc7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sqids.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Sqids
1212
{
1313
public static function forModel(Model $model): ?string
1414
{
15-
/** @var int $id */
15+
/** @var int|null $id */
1616
$id = $model->getKey();
1717

1818
if ($id === null) {

0 commit comments

Comments
 (0)