Skip to content

Commit 6a2424c

Browse files
committed
minor #21486 [Validator] Image Constraint - minPixels and maxPixels should be float (wkania)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Image Constraint - `minPixels` and `maxPixels` should be float Related to [issue](symfony/symfony#61980 (comment)). Commits ------- b9d1038 [Validator] Image Constraint - minPixels and maxPixels should be float
2 parents f049598 + b9d1038 commit 6a2424c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/Image.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Parameter Description
341341
``maxPixels``
342342
~~~~~~~~~~~~~
343343

344-
**type**: ``integer``
344+
**type**: ``integer`` | ``float``
345345

346346
If set, the amount of pixels of the image file must be less than or equal to this
347347
value.
@@ -368,7 +368,7 @@ Parameter Description
368368
``maxRatio``
369369
~~~~~~~~~~~~
370370

371-
**type**: ``float``
371+
**type**: ``integer`` | ``float``
372372

373373
If set, the aspect ratio (``width / height``) of the image file must be less
374374
than or equal to this value.
@@ -465,7 +465,7 @@ Parameter Description
465465
``minPixels``
466466
~~~~~~~~~~~~~
467467

468-
**type**: ``integer``
468+
**type**: ``integer`` | ``float``
469469

470470
If set, the amount of pixels of the image file must be greater than or equal to this
471471
value.
@@ -492,7 +492,7 @@ Parameter Description
492492
``minRatio``
493493
~~~~~~~~~~~~
494494

495-
**type**: ``float``
495+
**type**: ``integer`` | ``float``
496496

497497
If set, the aspect ratio (``width / height``) of the image file must be greater
498498
than or equal to this value.

0 commit comments

Comments
 (0)