Skip to content

Commit 134d77d

Browse files
committed
add return types to test fixtures
1 parent f6a425b commit 134d77d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DummyString implements DenormalizableInterface
2222
/** @var string $value */
2323
public $value;
2424

25-
public function denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = [])
25+
public function denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = []): void
2626
{
2727
$this->value = $data;
2828
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct()
2424
{
2525
}
2626

27-
public function denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = [])
27+
public function denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = []): void
2828
{
2929
throw new NotNormalizableValueException();
3030
}

0 commit comments

Comments
 (0)