Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10860,12 +10860,6 @@ parameters:
count: 1
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/CountryConverter.php

-
message: '#^Cannot access offset ''timestamp'' on array\|bool\|float\|int\|string\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php

-
message: '#^Method Ibexa\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\DateAndTimeConverter\:\:getDateIntervalFromXML\(\) should return DateInterval but empty return statement found\.$#'
identifier: return.empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function toStorageValue(FieldValue $value, StorageFieldValue $storageFiel
{
// @todo: One should additionally store the timezone here. This could
Comment thread
konradoboza marked this conversation as resolved.
Outdated
// be done in a backwards compatible way, I think…
$storageFieldValue->dataInt = ($value->data !== null ? $value->data['timestamp'] : null);
$storageFieldValue->dataInt = ($value->data['timestamp'] ?? null);
Comment thread
papcio122 marked this conversation as resolved.
Outdated
$storageFieldValue->sortKeyInt = (int)$value->sortKey;
}

Expand Down
Loading