diff --git a/src/Bridge/RamseyUuid/Identifier/Normalizer/UuidNormalizer.php b/src/Bridge/RamseyUuid/Identifier/Normalizer/UuidNormalizer.php index 8a3ce082486..107d0f2f84e 100644 --- a/src/Bridge/RamseyUuid/Identifier/Normalizer/UuidNormalizer.php +++ b/src/Bridge/RamseyUuid/Identifier/Normalizer/UuidNormalizer.php @@ -28,6 +28,14 @@ final class UuidNormalizer implements DenormalizerInterface { /** * {@inheritdoc} + * + * @param mixed $data + * @param string $class + * @param null $format + * + * @throws InvalidIdentifierException + * + * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) { @@ -41,7 +49,7 @@ public function denormalize($data, $class, $format = null, array $context = []) /** * {@inheritdoc} */ - public function supportsDenormalization($data, $type, $format = null) + public function supportsDenormalization($data, $type, $format = null): bool { return \is_string($data) && is_a($type, UuidInterface::class, true); } diff --git a/src/Bridge/RamseyUuid/Serializer/UuidDenormalizer.php b/src/Bridge/RamseyUuid/Serializer/UuidDenormalizer.php index 8a8ff7abe63..9e5d9df749f 100644 --- a/src/Bridge/RamseyUuid/Serializer/UuidDenormalizer.php +++ b/src/Bridge/RamseyUuid/Serializer/UuidDenormalizer.php @@ -21,6 +21,13 @@ final class UuidDenormalizer implements DenormalizerInterface { + /** + * @param mixed $data + * @param string $type + * @param null $format + * + * @return mixed + */ public function denormalize($data, $type, $format = null, array $context = []) { try { @@ -30,7 +37,7 @@ public function denormalize($data, $type, $format = null, array $context = []) } } - public function supportsDenormalization($data, $type, $format = null) + public function supportsDenormalization($data, $type, $format = null): bool { return \is_string($data) && is_a($type, UuidInterface::class, true); } diff --git a/tests/Action/EntrypointActionTest.php b/tests/Action/EntrypointActionTest.php index 1baaae6b784..194778b62e3 100644 --- a/tests/Action/EntrypointActionTest.php +++ b/tests/Action/EntrypointActionTest.php @@ -27,7 +27,7 @@ class EntrypointActionTest extends TestCase { use ProphecyTrait; - public function testGetEntrypoint() + public function testGetEntrypoint(): void { $resourceNameCollectionFactoryProphecy = $this->prophesize(ResourceNameCollectionFactoryInterface::class); $resourceNameCollectionFactoryProphecy->create()->willReturn(new ResourceNameCollection(['dummies'])); diff --git a/tests/Fixtures/ArrayAccessible.php b/tests/Fixtures/ArrayAccessible.php index 2f0a9e19b66..8ded6c51b7f 100644 --- a/tests/Fixtures/ArrayAccessible.php +++ b/tests/Fixtures/ArrayAccessible.php @@ -29,6 +29,8 @@ public function offsetExists($offset): bool } /** + * @param mixed $offset + * * @return mixed */ #[\ReturnTypeWillChange] diff --git a/tests/Fixtures/TestBundle/Doctrine/Generator/Uuid.php b/tests/Fixtures/TestBundle/Doctrine/Generator/Uuid.php index a2ccebcc418..42af3d22004 100644 --- a/tests/Fixtures/TestBundle/Doctrine/Generator/Uuid.php +++ b/tests/Fixtures/TestBundle/Doctrine/Generator/Uuid.php @@ -27,6 +27,9 @@ public function __toString() return $this->id; } + /** + * @return mixed + */ public function jsonSerialize() { return $this->id;