Skip to content

Commit bbdd335

Browse files
Revert exception message
This reverts commit 3d1f8d4.
1 parent 3d1f8d4 commit bbdd335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public function setData($modelData)
364364
if (null !== $dataClass && !$viewData instanceof $dataClass) {
365365
$actualType = get_debug_type($viewData);
366366

367-
throw new LogicException('The form\'s view data is expected to be a ".'.$dataClass.'", but it is a "'.$actualType.'". You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms "'.$actualType.'" to an instance of "'.$dataClass.'".');
367+
throw new LogicException('The form\'s view data is expected to be a "'.$dataClass.'", but it is a "'.$actualType.'". You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms "'.$actualType.'" to an instance of "'.$dataClass.'".');
368368
}
369369
}
370370

0 commit comments

Comments
 (0)