Skip to content

Make key string validation optional for certain special characters? #156

@exts

Description

@exts
        if (preg_match('|[\{\}\(\)/\\\@\:]|', $key)) {
            $e = new InvalidArgumentException(sprintf(
                'Invalid key: "%s". The key contains one or more characters reserved for future extension: {}()/\@:',
                $key
            ));
            $this->handleException($e, __FUNCTION__);
        }

This block makes it hard to transfer code from other platforms because it's hard coded to ignore : have a few keys that look like: pre:HASH

Or introduce a way to modify this list so it isn't so coupled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions