Fix duplicate assertion error using Redis Store#697
Conversation
|
Are you sure this is because of the Redis Store? I don't see anything suggesting that in the backtrace. I'm having a hard time digging up what |
|
Regarding the commit: |
|
Ahh, thanks for the context. This PR makes sense to me, then, as I believe that's the way this function was originally intended to behave:
As for backwards compatibility, ugh, we've put ourselves in the unfortunate situation of reversing the error case return values. On error this function returns Another possible solution would be to update the documentation to include the case where Thoughts? |
|
I think you're mixing it up... Old situation: New situation: Since support for redis is relatively new, I think it's worth checking out if any code relies on |
|
I spent some time looking at the other store types (memcache, sql) and they do not appear to return false, so if the Redis plugin was to return false it would be inconsistent with the other types. |
|
Great, thanks @matt-catalyst! One suggestion I have, though, would be to make public function getMocked($key)
{
return array_key_exists($key, $this->config) ? $this->config[$key] : null;
}I think this is more true to the actual API, where |
9463ff9 to
50728b0
Compare
|
Thanks for the suggestion @mschwager - I have updated the pull request. |
|
This LGTM! Can we pull this in @tvdijen? |
|
Fine by me! |
|
Ahh, I was under the impression that @tvdijen had committer's access, but maybe that's not the case? If not, can we pull this in @jaimeperez or @thijskh? |
|
Thanks a lot for reporting and fixing this, @matt-catalyst! As for the lack of write access of @tvdijen, I've just fixed that too 😉 |
Fixes the following error when using the Redis Store: