Fix isEmpty logic in StringIdentifier: Correct boolean comparison for trimmed content.

This commit is contained in:
2025-09-18 22:54:28 +02:00
parent a5b06de92a
commit 6124eb9e34

View File

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