Skip to content

Commit 2e471cd

Browse files
authored
Narrow down array type for $attributes in CastsAttributes (#47365)
1 parent fd4619b commit 2e471cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface CastsAttributes
1616
* @param \Illuminate\Database\Eloquent\Model $model
1717
* @param string $key
1818
* @param mixed $value
19-
* @param array $attributes
19+
* @param array<string, mixed> $attributes
2020
* @return TGet|null
2121
*/
2222
public function get(Model $model, string $key, mixed $value, array $attributes);
@@ -27,7 +27,7 @@ public function get(Model $model, string $key, mixed $value, array $attributes);
2727
* @param \Illuminate\Database\Eloquent\Model $model
2828
* @param string $key
2929
* @param TSet|null $value
30-
* @param array $attributes
30+
* @param array<string, mixed> $attributes
3131
* @return mixed
3232
*/
3333
public function set(Model $model, string $key, mixed $value, array $attributes);

0 commit comments

Comments
 (0)