File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,21 @@ Parameter Description
163
163
``{{ value }} `` The current (invalid) value
164
164
================= ============================================================
165
165
166
+ exactly
167
+ ~~~~~~~
168
+
169
+ **type **: ``integer ``
170
+
171
+ This option is the exact length value. Validation will fail if
172
+ the given value's length is not **exactly ** equal to this value.
173
+
174
+ .. note ::
175
+
176
+ This option is the one being set by default when using the Length constraint
177
+ without passing any named argument to it. This means that for example,
178
+ ``@Assert\Length(20) `` and ``@Assert\Length(exactly=20) `` are equivalent, as
179
+ well as ``#[Assert\Length(20)] `` and ``#[Assert\Length(exactly: 20)] ``.
180
+
166
181
exactMessage
167
182
~~~~~~~~~~~~
168
183
You can’t perform that action at this time.
0 commit comments