File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace {{ namespace }};
44
55use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
6+ use Illuminate\Database\Eloquent\Model;
67
78class {{ class }} implements CastsAttributes
89{
910 /**
1011 * Cast the given value.
1112 *
12- * @param \Illuminate\Database\Eloquent\Model $model
13- * @param string $key
14- * @param mixed $value
15- * @param array $attributes
16- * @return mixed
13+ * @param array<string, mixed> $attributes
1714 */
18- public function get($model, string $key, $value, array $attributes)
15+ public function get(Model $model, string $key, mixed $value, array $attributes): mixed
1916 {
2017 return $value;
2118 }
2219
2320 /**
2421 * Prepare the given value for storage.
2522 *
26- * @param \Illuminate\Database\Eloquent\Model $model
27- * @param string $key
28- * @param mixed $value
29- * @param array $attributes
30- * @return mixed
23+ * @param array<string, mixed> $attributes
3124 */
32- public function set($model, string $key, $value, array $attributes)
25+ public function set(Model $model, string $key, mixed $value, array $attributes): mixed
3326 {
3427 return $value;
3528 }
You can’t perform that action at this time.
0 commit comments