We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e652ea commit 8d6d89dCopy full SHA for 8d6d89d
validation/translations.rst
@@ -136,7 +136,7 @@ You can also use :class:`Symfony\\Component\\Translation\\TranslatableMessage` t
136
$fakeNames = [/* ... */];
137
138
// check if the name is actually a fake name
139
- if (in_array($this->getFirstName(), $fakeNames)) {
+ if (in_array($this->getFirstName(), $fakeNames, true)) {
140
$context->buildViolation(new TranslatableMessage('author.name.fake', [], 'validators'))
141
->atPath('firstName')
142
->addViolation()
0 commit comments