@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Symfony\Component\Form\FormBuilderInterface; |
| 9 | 9 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 10 | 10 | use eZ\Publish\API\Repository\Values\Content\Content; |
| 11 | -use Symfony\Component\Validator\Constraints; |
|
| 12 | 11 | use eZ\Publish\Core\FieldType\DateAndTime as DTValue; |
| 13 | 12 | use DateTime; |
| 14 | 13 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * {@inheritdoc} |
| 39 | 39 | * |
| 40 | - * @return int|null |
|
| 40 | + * @return DateTime |
|
| 41 | 41 | */ |
| 42 | 42 | public function convertFieldValueToForm(Value $value, FieldDefinition $fieldDefinition = null) |
| 43 | 43 | { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function convertFieldValueFromForm($value) |
| 43 | 43 | { |
| 44 | - return new SelectionValue\Value((array) $value); |
|
| 44 | + return new SelectionValue\Value((array)$value); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |