update validation parameter
This commit is contained in:
parent
eb55d769b6
commit
b7ce7fafd4
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue