Skip to content

Commit

Permalink
update validation parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Chaplygin committed Sep 26, 2024
1 parent eb55d76 commit b7ce7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RetailCrm/Methods/V5/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ public function customerSubscriptionsUpdate(array $subscriptions, $customerId, $
);
}

if (!is_int($customerId)) {
if ($customerId === null || $customerId === '') {
throw new \InvalidArgumentException(
'Parameter `customerId` must be an integer'
'Parameter `customerId` is empty'
);
}

Expand Down

0 comments on commit b7ce7fa

Please sign in to comment.