@@ -272,10 +272,10 @@ public function testReorderBillingAndShippingAddresses(): void
272
272
$ order = $ this ->fixtures ->get ('order ' );
273
273
274
274
$ customerBillingAddressId = $ order ->getBillingAddress ()->getCustomerAddressId ();
275
- $ this ->updateCustomerAddress ($ customerBillingAddressId , ['postcode ' => $ billingPostCode ]);
275
+ $ this ->updateCustomerAddress (( int ) $ customerBillingAddressId , ['postcode ' => $ billingPostCode ]);
276
276
277
277
$ customerShippingAddressId = $ order ->getShippingAddress ()->getCustomerAddressId ();
278
- $ this ->updateCustomerAddress ($ customerShippingAddressId , ['postcode ' => $ shippingPostCode ]);
278
+ $ this ->updateCustomerAddress (( int ) $ customerShippingAddressId , ['postcode ' => $ shippingPostCode ]);
279
279
280
280
$ this ->reorder ($ order , $ customer ->getEmail ());
281
281
@@ -303,11 +303,12 @@ public function testReorderBillingAndShippingAddresses(): void
303
303
/**
304
304
* Update customer address information
305
305
*
306
- * @param $addressId
306
+ * @param int $addressId
307
307
* @param array $updateData
308
+ * @return void
308
309
* @throws LocalizedException
309
310
*/
310
- private function updateCustomerAddress ($ addressId , array $ updateData )
311
+ private function updateCustomerAddress (int $ addressId , array $ updateData ): void
311
312
{
312
313
$ address = $ this ->addressRepository ->getById ($ addressId );
313
314
foreach ($ updateData as $ setFieldName => $ setValue ) {
@@ -319,11 +320,11 @@ private function updateCustomerAddress($addressId, array $updateData)
319
320
/**
320
321
* Place reorder request
321
322
*
322
- * @param $order
323
- * @param $customerEmail
323
+ * @param OrderInterface $order
324
+ * @param string $customerEmail
324
325
* @return void
325
326
*/
326
- private function reorder ($ order , $ customerEmail ): void
327
+ private function reorder (OrderInterface $ order , string $ customerEmail ): void
327
328
{
328
329
$ this ->dispatchReorderRequest ((int )$ order ->getId ());
329
330
$ this ->assertRedirect ($ this ->stringContains ('backend/sales/order_create ' ));
0 commit comments