From b0f09c62f9bfbd876ea954b1a302491fb05473e7 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 17 Dec 2024 09:34:01 +0100 Subject: [PATCH] use ? before nullable single type declaration --- serializer/custom_name_converter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serializer/custom_name_converter.rst b/serializer/custom_name_converter.rst index d0ed45bdc0a..49dafb02cc4 100644 --- a/serializer/custom_name_converter.rst +++ b/serializer/custom_name_converter.rst @@ -30,7 +30,7 @@ A custom name converter can handle such cases:: class OrgPrefixNameConverter implements NameConverterInterface { - public function normalize(string $propertyName, string $class = null, ?string $format = null, array $context = []): string + public function normalize(string $propertyName, ?string $class = null, ?string $format = null, array $context = []): string { // during normalization, add the prefix return 'org_'.$propertyName;