// lets say that $row['delivery_settings'] is null, then json_decode('', true) => NULL
$deliverySettings = json_decode($row['delivery_settings'] ?? '', true);
// array_merge(NULL, []) => Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given
$newDeliveryOptions = $this->transformDeliveryOptions(array_merge($deliverySettings, $extraOptions));
// same with $extraOptions
Version check
PrestaShop version
8.1.5
PHP version
8.1
What went wrong?
https://github.com/myparcelnl/prestashop/blob/5d0da006167dd2a6840073118679eecc00edbc7f/src/Migration/Pdk/PdkDeliveryOptionsMigration.php#L125-L128
Reproduction steps
none
Relevant log output
No response
Additional context
No response