Skip to content

Commit 7dcd831

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Validation]: Adding missing `use`
2 parents 8bd0abe + f939e0c commit 7dcd831

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form/without_class.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ fields (e.g. a field must not be blank when another field has a certain value).
186186
To achieve this, use the ``expression`` option of the
187187
:doc:`When constraint </reference/constraints/When>` to reference the other field::
188188

189+
use Symfony\Component\Validator\Constraints as Assert;
190+
189191
$builder
190192
->add('how_did_you_hear', ChoiceType::class, [
191193
'required' => true,

0 commit comments

Comments
 (0)