We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35e184 commit 21003b0Copy full SHA for 21003b0
1 file changed
src/DataObject/Service/DataService.php
@@ -94,15 +94,15 @@ public function getNormalizedValue(
94
mixed $value,
95
Data $fieldDefinition
96
): mixed {
97
- if (!$fieldDefinition instanceof NormalizerInterface) {
98
- return null;
99
- }
100
-
101
$adapter = $this->dataAdapterService->tryDataAdapter($fieldDefinition->getFieldType());
102
if ($adapter instanceof DataNormalizerInterface) {
103
return $adapter->normalize($value, $fieldDefinition);
104
}
105
+ if (!$fieldDefinition instanceof NormalizerInterface) {
+ return null;
+ }
+
106
return $fieldDefinition->normalize($value);
107
108
0 commit comments