mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
use ? before nullable single type declaration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user