Skip to content

Commit

Permalink
Fix TypeError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
abed-t committed Jun 8, 2021
1 parent 8438f2f commit a855047
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Model/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public function getFixedAmounts(): array
public function setFixedAmounts($fixedAmounts): Operator
{
$_fixedAmounts = json_encode($fixedAmounts);
$this->fixedAmounts = json_decode($_fixedAmounts);
$this->fixedAmounts = json_decode($_fixedAmounts, true);
return $this;
}

Expand All @@ -612,7 +612,7 @@ public function getFixedAmountsDescriptions(): array
public function setFixedAmountsDescriptions($fixedAmountsDescriptions): Operator
{
$_fixedAmountsDescriptions = json_encode($fixedAmountsDescriptions);
$this->fixedAmountsDescriptions = json_decode($_fixedAmountsDescriptions);
$this->fixedAmountsDescriptions = json_decode($_fixedAmountsDescriptions, true);
return $this;
}

Expand All @@ -631,7 +631,7 @@ public function getLocalFixedAmounts(): ?array
public function setLocalFixedAmounts($localFixedAmounts): Operator
{
$_localFixedAmounts = json_encode($localFixedAmounts);
$this->localFixedAmounts = json_decode($_localFixedAmounts);
$this->localFixedAmounts = json_decode($_localFixedAmounts, true);
return $this;
}

Expand All @@ -650,7 +650,7 @@ public function getLocalFixedAmountsDescriptions(): ?array
public function setLocalFixedAmountsDescriptions($localFixedAmountsDescriptions): Operator
{
$_localFixedAmountsDescriptions = json_encode($localFixedAmountsDescriptions);
$this->localFixedAmountsDescriptions = json_decode($_localFixedAmountsDescriptions);
$this->localFixedAmountsDescriptions = json_decode($_localFixedAmountsDescriptions, true);
return $this;
}

Expand All @@ -669,7 +669,7 @@ public function getSuggestedAmountsMap(): ?array
public function setSuggestedAmountsMap($suggestedAmountsMap): Operator
{
$_suggestedAmountsMap = json_encode($suggestedAmountsMap);
$this->suggestedAmountsMap = json_decode($_suggestedAmountsMap);
$this->suggestedAmountsMap = json_decode($_suggestedAmountsMap, true);
return $this;
}

Expand All @@ -688,7 +688,7 @@ public function getGeographicalRechargePlans(): ?array
public function setGeographicalRechargePlans($geographicalRechargePlans): Operator
{
$_geographicalRechargePlans = json_encode($geographicalRechargePlans);
$this->geographicalRechargePlans = json_decode($_geographicalRechargePlans);
$this->geographicalRechargePlans = json_decode($_geographicalRechargePlans, true);
return $this;
}

Expand All @@ -708,7 +708,7 @@ public function setPromotions($promotions): Operator
{
$this->promotions = $promotions;
$_promotions = json_encode($promotions);
$this->promotions = json_decode($_promotions);
$this->promotions = json_decode($_promotions, true);
return $this;
}

Expand Down

0 comments on commit a855047

Please sign in to comment.