File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 139
139
* public function toArray() : array
140
140
* {
141
141
* return \array_map(static function (ReasonType $reasonType) {
142
- * return $reasonType->toArray ();
142
+ * return $reasonType->toString ();
143
143
* }, $this->items);
144
144
* }
145
145
*
@@ -523,7 +523,7 @@ public function methodToArray(
523
523
): MethodGenerator {
524
524
$ body = <<<'PHP'
525
525
return \array_map(static function (%s $%s) {
526
- return $%s->toArray ();
526
+ return $%s->toString ();
527
527
}, $this->%s);
528
528
PHP;
529
529
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ public function items() : array
223
223
public function toArray() : array
224
224
{
225
225
return \array_map(static function (ReasonType $reasonType) {
226
- return $reasonType->toArray ();
226
+ return $reasonType->toString ();
227
227
}, $this->items);
228
228
}
229
229
/**
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ public function items() : array
524
524
public function toArray() : array
525
525
{
526
526
return \array_map(static function (Address $address) {
527
- return $address->toArray ();
527
+ return $address->toString ();
528
528
}, $this->shippingAddresses);
529
529
}
530
530
/**
You can’t perform that action at this time.
0 commit comments