Skip to content

Commit

Permalink
Fix ModelApiNormalizer supportsDenormalization missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent authored Nov 29, 2023
1 parent 15bc315 commit 90e8619
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Normalizer/ModelApiNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public function normalize($object, $format = null, array $context = [])
return $data;
}

public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
{
return false;
}

public function supportsNormalization(mixed $data, string $format = null)
{
return is_object($data) && $data instanceof BaseApiModel;
Expand Down

0 comments on commit 90e8619

Please sign in to comment.