From d18a8958ccddfb4536d6659ba7e7c4d7ee90ffcb Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Sun, 14 Jun 2020 19:55:57 +0200 Subject: [PATCH] Update TypeHint Serializer.rst --- components/serializer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index a64fc88dd87..b334d28d99c 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -463,12 +463,12 @@ A custom name converter can handle such cases:: class OrgPrefixNameConverter implements NameConverterInterface { - public function normalize($propertyName) + public function normalize(string $propertyName) { return 'org_'.$propertyName; } - public function denormalize($propertyName) + public function denormalize(string $propertyName) { // removes 'org_' prefix return 'org_' === substr($propertyName, 0, 4) ? substr($propertyName, 4) : $propertyName;