1
0
Fork 0
mirror of synced 2025-03-30 04:00:22 +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'
);
}