Skip to content

Commit

Permalink
Adapt #1814 to 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemN authored May 9, 2021
1 parent 9b258b1 commit 75794a7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public function updateProperty($reflection, Schema $property)
$property->setExclusiveMaximum($annotation->value);
} elseif ($annotation instanceof Assert\LessThanOrEqual) {
$property->setMaximum($annotation->value);
} elseif ($annotation instanceof Assert\GreaterThan) {
$property->setExclusiveMinimum($annotation->value);
} elseif ($annotation instanceof Assert\GreaterThanOrEqual) {
$property->setMinimum($annotation->value);
}
}
}
Expand Down

0 comments on commit 75794a7

Please sign in to comment.