use ? before nullable single type declaration

This commit is contained in:
Christian Flothmann
2024-12-17 09:34:01 +01:00
parent 0c6a77acda
commit b0f09c62f9

View File

@@ -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;