Skip to content

Commit bbc851f

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

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
@@ -11,7 +11,7 @@ class GreetingInputDenormalizer implements DenormalizerInterface, DenormalizerAw
1111
{
1212
use DenormalizerAwareTrait;
1313

14-
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = [])
14+
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
1515
{
1616
if ('json' === $format) {
1717
$data = $data[array_key_first($data)];

0 commit comments

Comments
 (0)