mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
docgen: person normalization: fix typing of age
This commit is contained in:
parent
9453fc2dd5
commit
efdd96b69f
@ -87,7 +87,7 @@ class PersonDocGenNormalizer implements
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'text' => $this->personRender->renderString($person, []),
|
'text' => $this->personRender->renderString($person, []),
|
||||||
'age' => $person->getAge(),
|
'age' => (int) $person->getAge(),
|
||||||
'birthdate' => $this->normalizer->normalize($person->getBirthdate(), $format, $dateContext),
|
'birthdate' => $this->normalizer->normalize($person->getBirthdate(), $format, $dateContext),
|
||||||
'deathdate' => $this->normalizer->normalize($person->getDeathdate(), $format, $dateContext),
|
'deathdate' => $this->normalizer->normalize($person->getDeathdate(), $format, $dateContext),
|
||||||
'gender' => $this->translator->trans($person->getGender()),
|
'gender' => $this->translator->trans($person->getGender()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user