Skip to content

Commit 8d6d89d

Browse files
Being nitpick
Co-authored-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com>
1 parent 6e652ea commit 8d6d89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/translations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ You can also use :class:`Symfony\\Component\\Translation\\TranslatableMessage` t
136136
$fakeNames = [/* ... */];
137137
138138
// check if the name is actually a fake name
139-
if (in_array($this->getFirstName(), $fakeNames)) {
139+
if (in_array($this->getFirstName(), $fakeNames, true)) {
140140
$context->buildViolation(new TranslatableMessage('author.name.fake', [], 'validators'))
141141
->atPath('firstName')
142142
->addViolation()

0 commit comments

Comments
 (0)