Skip to content

Commit

Permalink
[ResourceBundle] Version Marshalling for FieldCollections - psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Dec 19, 2024
1 parent 48f1ffa commit d974dd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function addDoctrineCollectionFilter(GenericEvent $event): void
*/
$copier->addFilter(
new PimcoreFieldCollectionDefinitionReplaceFilter(
function (AbstractData $object, Data $fieldDefinition, $property, $currentValue) {
function (AbstractData $object, Data $fieldDefinition, mixed $property, mixed $currentValue): mixed {
if ($fieldDefinition instanceof Data\CustomVersionMarshalInterface) {
return $fieldDefinition->marshalVersion($object->getObject(), $currentValue);
}
Expand All @@ -85,7 +85,7 @@ function (AbstractData $object, Data $fieldDefinition, $property, $currentValue)
if (($context['source'] ?? false) === 'Pimcore\Model\Version::unmarshalData') {
$copier->addFilter(
new PimcoreFieldCollectionDefinitionReplaceFilter(
function (AbstractData $object, Data $fieldDefinition, $property, $currentValue) {
function (AbstractData $object, Data $fieldDefinition, mixed $property, mixed $currentValue): mixed {
if ($fieldDefinition instanceof Data\CustomVersionMarshalInterface) {
return $fieldDefinition->unmarshalVersion($object->getObject(), $currentValue);
}
Expand Down

0 comments on commit d974dd4

Please sign in to comment.