diff --git a/src/DataObject/Data/Adapter/FieldCollectionsAdapter.php b/src/DataObject/Data/Adapter/FieldCollectionsAdapter.php index 5a8e625d..434e0276 100644 --- a/src/DataObject/Data/Adapter/FieldCollectionsAdapter.php +++ b/src/DataObject/Data/Adapter/FieldCollectionsAdapter.php @@ -40,7 +40,9 @@ final readonly class FieldCollectionsAdapter implements SetterDataInterface, DataNormalizerInterface { use ValidateFieldTypeTrait; + private const TYPE_KEY = 'type'; + private const DATA_KEY = 'data'; public function __construct( diff --git a/src/DataObject/Data/Adapter/RgbaColorAdapter.php b/src/DataObject/Data/Adapter/RgbaColorAdapter.php index f5ff8065..294e15fe 100644 --- a/src/DataObject/Data/Adapter/RgbaColorAdapter.php +++ b/src/DataObject/Data/Adapter/RgbaColorAdapter.php @@ -48,8 +48,7 @@ public function getDataForSetter( public function normalize( mixed $value, Data $fieldDefinition - ): ?string - { + ): ?string { if (!$value instanceof RgbaColor) { return null; }