Skip to content

Commit

Permalink
increasing categories limit
Browse files Browse the repository at this point in the history
  • Loading branch information
aliminaei committed Sep 12, 2024
1 parent 1f1e506 commit f7ebd0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/model/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function listInvalidProperties()
}

if (!is_null($this->container['categories']) && (count($this->container['categories']) > 500)) {
$invalidProperties[] = "invalid value for 'categories', number of items must be less than or equal to 100.";
$invalidProperties[] = "invalid value for 'categories', number of items must be less than or equal to 500.";
}

$allowedValues = $this->getProductTypeAllowableValues();
Expand Down Expand Up @@ -656,8 +656,8 @@ public function getCategories()
public function setCategories($categories)
{

if (!is_null($categories) && (count($categories) > 100)) {
throw new \InvalidArgumentException('invalid value for $categories when calling CartItem., number of items must be less than or equal to 100.');
if (!is_null($categories) && (count($categories) > 500)) {
throw new \InvalidArgumentException('invalid value for $categories when calling CartItem., number of items must be less than or equal to 500.');
}
$this->container['categories'] = $categories;

Expand Down

0 comments on commit f7ebd0f

Please sign in to comment.