Skip to content

Commit

Permalink
fix: if address attr is an object but can't be parsed to an array, gi…
Browse files Browse the repository at this point in the history
…ve null to the 'attr mapped' event

Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Sep 19, 2024
1 parent dc08f8c commit 7622bfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/ProvisioningService.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public function provisionUser(string $tokenUserId, int $providerId, object $idTo
$addressArray[$regionAttribute] ?? '',
$addressArray[$countryAttribute] ?? '',
];
} else {
$address = null;
}
} elseif ($street !== null || $postalcode !== null || $locality !== null || $region !== null || $country !== null) {
// Concatenate the address components
Expand Down

0 comments on commit 7622bfd

Please sign in to comment.