Define mixed type to param $id on getById method.
This commit is contained in:
parent
4d052efba6
commit
06b7907f7c
@ -705,7 +705,7 @@ class Model {
|
|||||||
*
|
*
|
||||||
* @return Model|null
|
* @return Model|null
|
||||||
*/
|
*/
|
||||||
public static function getById($id): ?Model {
|
public static function getById(mixed $id): ?Model {
|
||||||
return static::where(static::$primaryKey, $id)->getFirst();
|
return static::where(static::$primaryKey, $id)->getFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user