Skip to content

Commit 0e5210b

Browse files
committed
retro support for data
1 parent 3e11875 commit 0e5210b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Support/Buyer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function fromArray(array $values): self
4545
// @phpstan-ignore-next-line
4646
phone: data_get($values, 'phone'),
4747
// @phpstan-ignore-next-line
48-
fields: data_get($values, 'fields') ?? [],
48+
fields: data_get($values, 'fields') ?? data_get($values, 'data') ?? [],
4949
);
5050
}
5151

src/Support/Seller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function fromArray(array $values): self
4242
// @phpstan-ignore-next-line
4343
phone: data_get($values, 'phone'),
4444
// @phpstan-ignore-next-line
45-
fields: data_get($values, 'fields') ?? [],
45+
fields: data_get($values, 'fields') ?? data_get($values, 'data') ?? [],
4646
);
4747
}
4848

0 commit comments

Comments
 (0)