Skip to content

Commit cfa0119

Browse files
committed
Remove unnecessary empty usages
1 parent 5ddaa2a commit cfa0119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function validate(mixed $entity, Constraint $constraint): void
116116

117117
// skip validation if there are no criteria (this can happen when the
118118
// "ignoreNull" option is enabled and fields to be checked are null
119-
if (empty($criteria)) {
119+
if (!$criteria) {
120120
return;
121121
}
122122

0 commit comments

Comments
 (0)