Skip to content

Commit

Permalink
compatible with Symfony\Component\Serializer\Normalizer\DenormalizerI…
Browse files Browse the repository at this point in the history
…nterface::denormalize
  • Loading branch information
joecorall committed Oct 28, 2024
1 parent 0111441 commit a1d4e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Normalizer/ContentEntityNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function normalize($entity, $format = NULL, array $context = []): array|b
/**
* {@inheritdoc}
*/
public function denormalize($data, $class, $format = NULL, array $context = []) {
public function denormalize(mixed $data, string $class, ?string $format = NULL, array $context = []) : mixed {

// Get type, necessary for determining which bundle to create.
if (!isset($data['_links']['type'])) {
Expand Down

0 comments on commit a1d4e02

Please sign in to comment.