Skip to content

Commit c148722

Browse files
authored
Replace allowEmpty by allowEmptyString
1 parent c8cb187 commit c148722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fr/core-libraries/validation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ champs que vous souhaitez valider::
3131

3232
$validator
3333
->requirePresence('title')
34-
->notEmpty('title', 'Please fill this field')
34+
->notEmptyString('title', 'Please fill this field')
3535
->add('title', [
3636
'length' => [
3737
'rule' => ['minLength', 10],
3838
'message' => 'Titles need to be at least 10 characters long',
3939
]
4040
])
41-
->allowEmpty('published')
41+
->allowEmptyString('published')
4242
->add('published', 'boolean', [
4343
'rule' => 'boolean'
4444
])

0 commit comments

Comments
 (0)