Skip to content

Commit 3543cfd

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Fix code Tweak the code to avoid fabbot false positives
2 parents b313fe5 + 5a0337d commit 3543cfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Constraints/BicValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function validate($value, Constraint $constraint)
130130
try {
131131
$iban = $this->getPropertyAccessor()->getValue($object, $path);
132132
} catch (NoSuchPropertyException $e) {
133-
throw new ConstraintDefinitionException(sprintf('Invalid property path "%s" provided to "%s" constraint: %s.', $path, \get_class($constraint), $e->getMessage()), 0, $e);
133+
throw new ConstraintDefinitionException(sprintf('Invalid property path "%s" provided to "%s" constraint: '.$e->getMessage(), $path, \get_class($constraint)), 0, $e);
134134
}
135135
}
136136
if (!$iban) {

Constraints/RangeValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function getLimit($propertyPath, $default, Constraint $constraint)
157157
try {
158158
return $this->getPropertyAccessor()->getValue($object, $propertyPath);
159159
} catch (NoSuchPropertyException $e) {
160-
throw new ConstraintDefinitionException(sprintf('Invalid property path "%s" provided to "%s" constraint: %s.', $propertyPath, \get_class($constraint), $e->getMessage()), 0, $e);
160+
throw new ConstraintDefinitionException(sprintf('Invalid property path "%s" provided to "%s" constraint: '.$e->getMessage(), $propertyPath, \get_class($constraint)), 0, $e);
161161
}
162162
}
163163

0 commit comments

Comments
 (0)