Skip to content

Commit 72b4d2f

Browse files
committed
default to null
1 parent 3537adf commit 72b4d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestPayloadValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function onKernelControllerArguments(ControllerArgumentsEvent $event): vo
153153
if (\is_array($payload) && !empty($constraints) && !$constraints instanceof Assert\All) {
154154
$constraints = new Assert\All($constraints);
155155
}
156-
$groups = $this->resolveValidationGroups($argument->validationGroups, $event);
156+
$groups = $this->resolveValidationGroups($argument->validationGroups ?? null, $event);
157157
$violations->addAll($this->validator->validate($payload, $constraints, $groups));
158158
}
159159

0 commit comments

Comments
 (0)