Skip to content

Commit 73163c5

Browse files
committed
add slash before functions
1 parent d305d80 commit 73163c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function validate(mixed $value, Constraint $constraint): void
217217
->setCode(UniqueEntity::NOT_UNIQUE_ERROR)
218218
->setCause($result);
219219

220-
if(is_array($criteria) && count($criteria) > 1) {
220+
if(\is_array($criteria) && \count($criteria) > 1) {
221221
foreach($criteria as $field => $value) {
222222
$violation->setParameter('{{ '.$field.' value }}', $this->formatWithIdentifiers($em, $class, $value));
223223
}

0 commit comments

Comments
 (0)