mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 16:45:01 +00:00
Fix isEmpty
logic in StringIdentifier
: Correct boolean comparison for trimmed content.
This commit is contained in:
@@ -41,6 +41,6 @@ final readonly class StringIdentifier implements PersonIdentifierEngineInterface
|
||||
|
||||
public function isEmpty(PersonIdentifier $identifier): bool
|
||||
{
|
||||
return '' !== trim($identifier->getValue()['content'] ?? '');
|
||||
return '' === trim($identifier->getValue()['content'] ?? '');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user