Skip to content

Commit 7bbf01a

Browse files
committed
Merge 4.0
2 parents e6e657f + e5956e3 commit 7bbf01a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ public function create(string $resourceClass, string $property, array $options =
151151
*/
152152
private function getValidationGroups(ValidatorClassMetadataInterface $classMetadata, array $options): array
153153
{
154-
if (isset($options['validation_groups'])) {
154+
if (
155+
isset($options['validation_groups'])
156+
&& !\is_callable($options['validation_groups'])
157+
) {
155158
return $options['validation_groups'];
156159
}
157160

0 commit comments

Comments
 (0)