Skip to content

Commit 1bb7e1a

Browse files
committed
use ? before nullable single type declaration
1 parent 0c6a77a commit 1bb7e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer/custom_name_converter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A custom name converter can handle such cases::
3030

3131
class OrgPrefixNameConverter implements NameConverterInterface
3232
{
33-
public function normalize(string $propertyName, string $class = null, ?string $format = null, array $context = []): string
33+
public function normalize(string $propertyName, ?string $class = null, ?string $format = null, array $context = []): string
3434
{
3535
// during normalization, add the prefix
3636
return 'org_'.$propertyName;

0 commit comments

Comments
 (0)