Skip to content

Commit

Permalink
fix(PHP7.4): Fix crash due to extra ,
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Feb 17, 2022
1 parent 7de841b commit 99b4a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function __construct(
array $flags = [],
IPalletInfo $palletInfo = null,
IWeightedPackageInfo $weightedPackageInfo = null,
IPackageSet $packageSet = null,
IPackageSet $packageSet = null
) {
if (in_array($packageProductType, Product::$cashOnDelivery) && is_null($paymentInfo)) {
throw new WrongDataException('$paymentInfo must be set if product type is CoD');
Expand Down

0 comments on commit 99b4a4c

Please sign in to comment.