Replies: 2 comments
- 8000
-
Yes, the breaking change is my fault. I didn't consider that so many people actually subclass PhpRedis. Too much time doing C I guess. There's also a discussion around this in #2562 and #2564.
I'm not sure. We should document the issues somewhere prominent. Ideally I'd like to break a few different things in |
Beta Was this translation helpful? Give feedback.
-
Thank you for the clarification. Just wanted to ping about this issue, but I see there have been a couple of issues raised already and the team is aware. So I will close this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In version 6.0.2
RedisCluster
method signature was:in 6.1.0 it was changed to
Now this is a small problem when I am extending the class to add wrapper methods
When the extension is uptrade to >=6.1.0 this error will pop up:
There is a way to bypass it though by widening parameter types in child class to "everything" (mixed):
This is essentially what Symfony also does (removes types).
So I just wanted to point this out that this is kind of a breaking change. I checked the CHANGELOG and
the signature changes are not mentioned there. Does this warrant a whole new 7.0 version? Maybe not, but it could be at least [MINOR BC BREAK] in the changelog - other repos do it.
Beta Was this translation helpful? Give feedback.
All reactions