Skip to content

Commit f77c85d

Browse files
committed
Fix CS
1 parent ab49119 commit f77c85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/Validator/ViolationMapper/ViolationMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function mapViolation(ConstraintViolation $violation, FormInterface $form
5050
$match = false;
5151

5252
// Don't create a ViolationPath instance for empty property paths
53-
if (\strlen($violation->getPropertyPath()) > 0) {
53+
if ('' !== $violation->getPropertyPath()) {
5454
$violationPath = new ViolationPath($violation->getPropertyPath());
5555
$relativePath = $this->reconstructPath($violationPath, $form);
5656
}

0 commit comments

Comments
 (0)