mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 00:55: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
|
public function isEmpty(PersonIdentifier $identifier): bool
|
||||||
{
|
{
|
||||||
return '' !== trim($identifier->getValue()['content'] ?? '');
|
return '' === trim($identifier->getValue()['content'] ?? '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user