Skip to content

Commit

Permalink
Update Rule.php
Browse files Browse the repository at this point in the history
Sometimes legacy data could trigger an exception because of null-values.
  • Loading branch information
Daniel-Ateles committed Jan 17, 2024
1 parent 9a594d4 commit 309e6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PricingManager/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function setValue(string $key, mixed $value, bool $ignoreEmptyValues = fa
return $this;
}
}
$this->$method($value);
$this->$method($value ?? '');
}

return $this;
Expand Down

0 comments on commit 309e6ad

Please sign in to comment.