mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -257,12 +257,10 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar
|
||||
{
|
||||
return $altNames
|
||||
->map(
|
||||
static function (PersonAltName $personAltName): array {
|
||||
return [
|
||||
'key' => $personAltName->getKey(),
|
||||
'label' => $personAltName->getLabel(),
|
||||
];
|
||||
}
|
||||
static fn(PersonAltName $personAltName): array => [
|
||||
'key' => $personAltName->getKey(),
|
||||
'label' => $personAltName->getLabel(),
|
||||
]
|
||||
)
|
||||
->toArray();
|
||||
}
|
||||
|
Reference in New Issue
Block a user