Skip to content

Commit

Permalink
allow integers input in cleanSearchValue() method
Browse files Browse the repository at this point in the history
  • Loading branch information
driehle committed Oct 21, 2023
1 parent b22329b commit 78fa8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validator/ObjectExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 78fa8ea

Please sign in to comment.