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