Skip to content

Commit e528343

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [Validation]: Adding missing `use`
2 parents 2e37fd5 + 403563f commit e528343

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)