8000 [Serializer] Fix tests · symfony/symfony@e1faaae · GitHub
[go: up one dir, main page]

Skip to content

Commit e1faaae

Browse files
committed
[Serializer] Fix tests
1 parent ed6e10a commit e1faaae

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/Symfony/Component/Serializer/Tests/Fixtures/DenormalizableDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class DenormalizableDummy implements DenormalizableInterface
1818
{
19-
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = [])
19+
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = []): void
2020
{
2121
}
2222
}

src/Symfony/Component/Serializer/Tests/Fixtures/NormalizableTraversableDummy.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ public function normalize(NormalizerInterface $normalizer, string $format = null
2626
];
2727
}
2828

29-
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = [])
29+
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = []): void
3030
{
31-
return [
32-
'foo' => 'denormalizedFoo',
33-
'bar' => 'denormalizedBar',
34-
];
3531
}
3632
}

src/Symfony/Component/Serializer/Tests/Fixtures/ScalarDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function normalize(NormalizerInterface $normalizer, string $format = null
2626
return 'xml' === $format ? $this->xmlFoo : $this->foo;
2727
}
2828

29-
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = [])
29+
public function denormalize(DenormalizerInterface $denormalizer, array|string|int|float|bool $data, string $format = null, array $context = []): void
3030
{
3131
if ('xml' === $format) {
3232
$this->xmlFoo = $data;

0 commit comments

Comments
 (0)
0