Skip to content

Commit 2d6e548

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait` Fix CS
2 parents 656a1e3 + f77c85d commit 2d6e548

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
@@ -57,7 +57,7 @@ public function mapViolation(ConstraintViolation $violation, FormInterface $form
5757
$match = false;
5858

5959
// Don't create a ViolationPath instance for empty property paths
60-
if (\strlen($violation->getPropertyPath()) > 0) {
60+
if ('' !== $violation->getPropertyPath()) {
6161
$violationPath = new ViolationPath($violation->getPropertyPath());
6262
$relativePath = $this->reconstructPath($violationPath, $form);
6363
}

0 commit comments

Comments
 (0)