return;
} $annotations =
[];
if ($reflection instanceof \ReflectionClass &&
$annotations =
$this->reader->
getClassAnnotations($reflection)) { trigger_deprecation('symfony/validator', '6.4', 'Class "%s" uses Doctrine Annotations to configure validation constraints, which is deprecated. Use PHP attributes instead.',
$reflection->
getName());
} if ($reflection instanceof \ReflectionMethod &&
$annotations =
$this->reader->
getMethodAnnotations($reflection)) { trigger_deprecation('symfony/validator', '6.4', 'Method "%s::%s()" uses Doctrine Annotations to configure validation constraints, which is deprecated. Use PHP attributes instead.',
$reflection->
getDeclaringClass()->
getName(),
$reflection->
getName());
} if ($reflection instanceof \ReflectionProperty &&
$annotations =
$this->reader->
getPropertyAnnotations($reflection)) { trigger_deprecation('symfony/validator', '6.4', 'Property "%s::$%s" uses Doctrine Annotations to configure validation constraints, which is deprecated. Use PHP attributes instead.',
$reflection->
getDeclaringClass()->
getName(),
$reflection->
getName());
} foreach ($dedup as $annotation) { if ($annotation instanceof Constraint
) { $annotation->groups; // trigger initialization of the "groups" property
} } foreach ($annotations as $annotation) { if ($annotation instanceof Constraint
) {