update validation parameter
This commit is contained in:
parent
eb55d769b6
commit
b7ce7fafd4
@ -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'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user