From b7ce7fafd4d01539af57e15ea0e752534b4c6341 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Thu, 26 Sep 2024 10:19:25 +0300 Subject: [PATCH] update validation parameter --- lib/RetailCrm/Methods/V5/Customers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/RetailCrm/Methods/V5/Customers.php b/lib/RetailCrm/Methods/V5/Customers.php index e4fb992..a9df396 100644 --- a/lib/RetailCrm/Methods/V5/Customers.php +++ b/lib/RetailCrm/Methods/V5/Customers.php @@ -164,9 +164,9 @@ trait Customers ); } - if (!is_int($customerId)) { + if ($customerId === null || $customerId === '') { throw new \InvalidArgumentException( - 'Parameter `customerId` must be an integer' + 'Parameter `customerId` is empty' ); }