Skip to content

Commit b01cd64

Browse files
authored
fix(database): use correct return type for IsDatabaseModel::resolve (#2178)
1 parent 452e201 commit b01cd64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/database/src/IsDatabaseModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ public static function findById(string|int|PrimaryKey $id): ?self
137137
/**
138138
* Finds a model instance by its ID. Use through {@see \Tempest\Router\Bindable}.
139139
*/
140-
public static function resolve(string $input): ?self
140+
public static function resolve(string $input): ?static
141141
{
142+
// @phpstan-ignore-next-line
142143
return self::queryBuilder()->resolve($input);
143144
}
144145

0 commit comments

Comments
 (0)