Skip to content

Commit ea5a000

Browse files
committed
make find's return nullable
1 parent f10992c commit ea5a000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/Contracts/ModelPersistable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interface ModelPersistable extends Model {
1515
*
1616
* @param int $id
1717
*
18-
* @return Model
18+
* @return ?Model
1919
*/
20-
public static function find( $id ): Model;
20+
public static function find( $id ): ?Model;
2121

2222
/**
2323
* @since 1.0.0

0 commit comments

Comments
 (0)