diff --git a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php index 6c31e799b9..adaf6faafe 100644 --- a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php +++ b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php @@ -32,7 +32,7 @@ public function toStorageValue(FieldValue $value, StorageFieldValue $storageFiel { // @todo: One should additionally store the timezone here. This could // be done in a backwards compatible way, I think… - $storageFieldValue->dataInt = ($value->data !== null ? $value->data['timestamp'] : null); + $storageFieldValue->dataInt = ($value->data['timestamp'] ?? null); $storageFieldValue->sortKeyInt = (int)$value->sortKey; }