From 78fa8eab92ca7e0dc9d1350fb1de590dcfe7aa58 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Sat, 21 Oct 2023 22:50:47 +0800 Subject: [PATCH] allow integers input in cleanSearchValue() method --- src/Validator/ObjectExists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validator/ObjectExists.php b/src/Validator/ObjectExists.php index e8475338..61044cdd 100644 --- a/src/Validator/ObjectExists.php +++ b/src/Validator/ObjectExists.php @@ -118,14 +118,14 @@ private function validateFields(): array } /** - * @param string|object|mixed[] $value a field value or an array of field values if more fields have been configured to be + * @param string|int|object|mixed[] $value a field value or an array of field values if more fields have been configured to be * matched * * @return mixed[] * * @throws Exception\RuntimeException */ - protected function cleanSearchValue(string|object|array $value): array + protected function cleanSearchValue(string|int|object|array $value): array { $value = is_object($value) ? [$value] : (array) $value;