fix: allow null argument for gender mapping
This commit is contained in:
@@ -95,8 +95,12 @@ class AppRuntime implements RuntimeExtensionInterface
|
||||
};
|
||||
}
|
||||
|
||||
public function mapGender(string $gender): string
|
||||
public function mapGender(?string $gender): string
|
||||
{
|
||||
if (null === $gender) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$gender = strtoupper($gender);
|
||||
|
||||
return match ($gender) {
|
||||
|
||||
Reference in New Issue
Block a user