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

@@ -38,4 +38,9 @@ final readonly class StringIdentifier implements PersonIdentifierEngineInterface
{
return $identifier?->getValue()['content'] ?? '';
}
public function isEmpty(PersonIdentifier $identifier): bool
{
return '' !== trim($identifier->getValue()['content'] ?? '');
}
}