1
0
mirror of synced 2025-03-27 02:24:00 +03:00

update validation parameter

This commit is contained in:
Ivan Chaplygin 2024-09-26 10:19:25 +03:00
parent eb55d769b6
commit b7ce7fafd4

View File

@ -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'
);
}