Skip to content

Commit 9193ae1

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Tweak the code to avoid fabbot false positives
2 parents 757620b + e8576f8 commit 9193ae1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Form.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ private function modelToNorm($value)
10551055
$value = $transformer->transform($value);
10561056
}
10571057
} catch (TransformationFailedException $exception) {
1058-
throw new TransformationFailedException(sprintf('Unable to transform data for property path "%s": %s', $this->getPropertyPath(), $exception->getMessage()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
1058+
throw new TransformationFailedException(sprintf('Unable to transform data for property path "%s": '.$exception->getMessage(), $this->getPropertyPath()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
10591059
}
10601060

10611061
return $value;
@@ -1077,7 +1077,7 @@ private function normToModel($value)
10771077
$value = $transformers[$i]->reverseTransform($value);
10781078
}
10791079
} catch (TransformationFailedException $exception) {
1080-
throw new TransformationFailedException(sprintf('Unable to reverse value for property path "%s": %s', $this->getPropertyPath(), $exception->getMessage()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
1080+
throw new TransformationFailedException(sprintf('Unable to reverse value for property path "%s": '.$exception->getMessage(), $this->getPropertyPath()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
10811081
}
10821082

10831083
return $value;
@@ -1106,7 +1106,7 @@ private function normToView($value)
11061106
$value = $transformer->transform($value);
11071107
}
11081108
} catch (TransformationFailedException $exception) {
1109-
throw new TransformationFailedException(sprintf('Unable to transform value for property path "%s": %s', $this->getPropertyPath(), $exception->getMessage()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
1109+
throw new TransformationFailedException(sprintf('Unable to transform value for property path "%s": '.$exception->getMessage(), $this->getPropertyPath()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
11101110
}
11111111

11121112
return $value;
@@ -1130,7 +1130,7 @@ private function viewToNorm($value)
11301130
$value = $transformers[$i]->reverseTransform($value);
11311131
}
11321132
} catch (TransformationFailedException $exception) {
1133-
throw new TransformationFailedException(sprintf('Unable to reverse value for property path "%s": %s', $this->getPropertyPath(), $exception->getMessage()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
1133+
throw new TransformationFailedException(sprintf('Unable to reverse value for property path "%s": '.$exception->getMessage(), $this->getPropertyPath()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
11341134
}
11351135

11361136
return $value;

0 commit comments

Comments
 (0)