mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 23:55:02 +00:00
Remove empty PersonIdentifier
values during denormalization and add isEmpty
logic to PersonIdentifierWorker
. Include tests for empty value handling.
This commit is contained in:
@@ -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'] ?? '');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user