Skip to content

Commit e8576f8

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Tweak the code to avoid fabbot false positives
2 parents 3b9dc2e + 923082c commit e8576f8

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
@@ -1056,7 +1056,7 @@ private function modelToNorm($value)
10561056
$value = $transformer->transform($value);
10571057
}
10581058
} catch (TransformationFailedException $exception) {
1059-
throw new TransformationFailedException(sprintf('Unable to transform data for property path "%s": %s', $this->getPropertyPath(), $exception->getMessage()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
1059+
throw new TransformationFailedException(sprintf('Unable to transform data for property path "%s": '.$exception->getMessage(), $this->getPropertyPath()), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
10601060
}
10611061

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

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

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

11371137
return $value;

0 commit comments

Comments
 (0)