Skip to content

Commit 403563f

Browse files
committed
minor #21562 [Validator][Validation] : Adding missing use (ThomasLandauer)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator][Validation] : Adding missing `use` Page: https://symfony.com/doc/6.4/form/without_class.html#conditional-constraints Commits ------- 28c55ea [Validation]: Adding missing `use`
2 parents e963782 + 28c55ea commit 403563f

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)