Skip to content

Commit a64de31

Browse files
committed
Fix GreetingInputDenormalizer::supportsDenormalization
`Compile Error: Declaration of App\Rest\Serializer\GreetingInputDenormalizer::supportsDenormalization(mixed $data, string $type, ?string $format = null): bool must be compatible with Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool`
1 parent bbc851f commit a64de31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_samples/api/rest_api/src/Rest/Serializer/GreetingInputDenormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
2424
return new Greeting($salutation, $recipient);
2525
}
2626

27-
public function supportsDenormalization(mixed $data, string $type, ?string $format = null): bool
27+
public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
2828
{
2929
if (!is_array($data)) {
3030
return false;

0 commit comments

Comments
 (0)