From 121738f709de7517c909e8ebd71f0a970872b308 Mon Sep 17 00:00:00 2001 From: Grzegorz Kielar Date: Wed, 3 Aug 2022 12:31:21 +0200 Subject: [PATCH] Adding support for Symofny Assert\Sequentially --- .../Annotations/SymfonyConstraintAnnotationReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModelDescriber/Annotations/SymfonyConstraintAnnotationReader.php b/ModelDescriber/Annotations/SymfonyConstraintAnnotationReader.php index 861bec3..171a31a 100644 --- a/ModelDescriber/Annotations/SymfonyConstraintAnnotationReader.php +++ b/ModelDescriber/Annotations/SymfonyConstraintAnnotationReader.php @@ -52,7 +52,7 @@ class SymfonyConstraintAnnotationReader public function updateProperty($reflection, OA\Property $property, ?array $validationGroups = null): void { foreach ($this->getAnnotations($reflection, $validationGroups) as $outerAnnotation) { - $innerAnnotations = $outerAnnotation instanceof Assert\Compound + $innerAnnotations = $outerAnnotation instanceof Assert\Compound || $outerAnnotation instanceof Assert\Sequentially ? $outerAnnotation->constraints : [$outerAnnotation];