Skip to content

Commit 1539c99

Browse files
committed
fix jsonapi call to data transformer
1 parent c3a9f4a commit 1539c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonApi/Serializer/ItemNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public function normalize($object, $format = null, array $context = [])
6868
}
6969

7070
$outputClass = $this->getOutputClass($this->getObjectClass($object), $context);
71-
if (null !== $outputClass && null !== $this->dataTransformer && $this->dataTransformer->supportsTransformation($object, $context)) {
72-
$object = $this->dataTransformer->transform($object, $context);
71+
if (null !== $outputClass && null !== $this->dataTransformer && $this->dataTransformer->supportsTransformation($object, $outputClass, $context)) {
72+
$object = $this->dataTransformer->transform($object, $outputClass, $context);
7373
}
7474

7575
// Get and populate attributes data

0 commit comments

Comments
 (0)