fix: repair the date of birth import in Teamer::fromUserinfo

This commit is contained in:
Björn Fromme
2026-08-12 17:55:04 +02:00
parent 642102263e
commit 8b09845d96
+3 -3
View File
@@ -250,11 +250,11 @@ class Teamer implements TimestampableEntityInterface, SoftDeletableEntityInterfa
->setGender($userinfo['profile']['gender'] ?? null)
;
if (null !== $userinfo['profile']['date_of_birth'] ?? null) {
if (true === isset($userinfo['profile']['date_of_birth'])) {
try {
$dateOfBirth = new \DateTimeImmutable(['profile']['date_of_birth']);
$dateOfBirth = new \DateTimeImmutable((string) $userinfo['profile']['date_of_birth']);
$instance->setDateOfBirth($dateOfBirth);
} catch (\Exception $e) {
} catch (\Exception|\TypeError $e) {
}
}