Skip to content

Commit 347b8ee

Browse files
committed
autofix
1 parent eea52f5 commit 347b8ee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/Infra/Models/ItemMultiPrice.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ final class ItemMultiPrice extends Model implements ProductLimitedInterface
2929
*/
3030
protected $fillable = ['name', 'quantity', 'price', 'prices'];
3131

32-
protected $casts = [
33-
'prices' => 'array',
34-
];
35-
3632
public function getTable(): string
3733
{
3834
return 'items';
@@ -65,4 +61,11 @@ public function getMetaProduct(): ?array
6561
{
6662
return null;
6763
}
64+
65+
protected function casts(): array
66+
{
67+
return [
68+
'prices' => 'array',
69+
];
70+
}
6871
}

0 commit comments

Comments
 (0)