Skip to content

Commit 7f54de3

Browse files
committed
Fix: listId validator
1 parent ff05834 commit 7f54de3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Subscription/Validator/Constraint/ListExistsValidator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ public function validate($value, Constraint $constraint): void
3030
return;
3131
}
3232

33-
if (!is_string($value)) {
34-
throw new UnexpectedValueException($value, 'string');
35-
}
36-
37-
$existingList = $this->subscriberListRepository->find($value);
33+
$existingList = $this->subscriberListRepository->find((int)$value);
3834

3935
if (!$existingList) {
4036
throw new NotFoundHttpException('Subscriber list does not exists.');

0 commit comments

Comments
 (0)