1
0
mirror of synced 2024-11-22 05:16:07 +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( throw new \InvalidArgumentException(
'Parameter `customerId` must be an integer' 'Parameter `customerId` is empty'
); );
} }