Remove empty PersonIdentifier values during denormalization and add isEmpty logic to PersonIdentifierWorker. Include tests for empty value handling.

This commit is contained in:
2025-09-18 13:32:09 +02:00
parent 840fde4ad4
commit 4207efd6bf
5 changed files with 100 additions and 1 deletions

View File

@@ -46,4 +46,12 @@ final readonly class PersonIdentifierWorker
{
return $this->identifierEngine->renderAsString($identifier, $this->definition);
}
/**
* Return true if the identifier must be considered as empty.
*/
public function isEmpty(PersonIdentifier $identifier): bool
{
return $this->identifierEngine->isEmpty($identifier);
}
}