Skip to content

Commit

Permalink
remove unnecessary instance check for constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Oct 24, 2024
1 parent 5349d4a commit b2bdf21
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,6 @@ private function getAnnotations(Context $parentContext, $reflection, ?array $val
$this->setContextFromReflection($parentContext, $reflection);

foreach ($this->locateAnnotations($reflection) as $annotation) {
if (!$annotation instanceof Constraint) {
continue;
}

if (!$this->useValidationGroups || $this->isConstraintInGroup($annotation, $validationGroups)) {
yield $annotation;
}
Expand Down

0 comments on commit b2bdf21

Please sign in to comment.