Define mixed type to param $id on getById method.

This commit is contained in:
kj 2023-03-25 21:28:25 -04:00
parent 4d052efba6
commit 06b7907f7c

View File

@ -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();
} }