Skip to content

Generated value must be null or string #6

@0x346e3730

Description

@0x346e3730

Hello,

When using the anonymizer with the bundle, I encountered this error.
It comes from WebnetFr\DatabaseAnonymizer\Anonymizer line 53.

I don't understand why there is this constraint :

if (null !== $anonValue && !\is_string($anonValue)) {
    throw new InvalidAnonymousValueException('Generated value must be null or string');
}

I had this error when using numbers : why would numbers be forbidden/invalid ? I can't think of a use case.

Thank's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions