Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR-16 decorator should use maximum key length capability #112

Merged
merged 4 commits into from May 16, 2021

Conversation

boesing
Copy link
Member

@boesing boesing commented May 16, 2021

Q A
Bugfix yes
BC Break no

Description

Since its very first version, the PSR-16 decorator only accepted keys up to 64 characters.
The user iganev provided a solution in #39 which based on the maximum key length capability of the storage adapters.

It seems that most of the storage adapters do return proper key lengths (except redis) and thus, this change seems absolutely legit to me.

So with v2.12.0 I'd introduce this change and with v3.0.0, all adapters returning -1 as maximum key length will be incompatible with the PSR-16 decorator.

iganev and others added 2 commits May 16, 2021 20:16
…apter max key length capability value

Signed-off-by: Ivan Ganev <iganev@cytec.bg>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing added the Bug Something isn't working label May 16, 2021
@boesing boesing added this to the 2.12.0 milestone May 16, 2021
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing force-pushed the rework-pull-39 branch 2 times, most recently from 2950926 to ef1132b Compare May 16, 2021 19:28
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing merged commit a3515f0 into laminas:2.12.x May 16, 2021
@boesing boesing deleted the rework-pull-39 branch May 16, 2021 19:38
@boesing
Copy link
Member Author

boesing commented May 16, 2021

Thanks @iganev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants