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.
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:HASHOr introduce a way to modify this list so it isn't so coupled.