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 ab49119 commit f77c85dCopy full SHA for f77c85d
Extension/Validator/ViolationMapper/ViolationMapper.php
@@ -50,7 +50,7 @@ public function mapViolation(ConstraintViolation $violation, FormInterface $form
50
$match = false;
51
52
// Don't create a ViolationPath instance for empty property paths
53
- if (\strlen($violation->getPropertyPath()) > 0) {
+ if ('' !== $violation->getPropertyPath()) {
54
$violationPath = new ViolationPath($violation->getPropertyPath());
55
$relativePath = $this->reconstructPath($violationPath, $form);
56
}
0 commit comments