-
Notifications
You must be signed in to change notification settings - Fork 59
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
Not working with the Redis extension #46
Comments
work fine with predis ~1.0 and php 7.0.1. Can you provide a simple test case ? txs |
Predis is the client implemented in vanilla PHP, I experience the problem with the Redis extension. |
yes. can you show me a simple test case ? So I can reproduce ? Or its just while running the tests of RedisMock ? |
To reproduce:
I've opened #47 |
@mnapoli you're right the problem come from reflection who can't read default value from internal function/method. With |
Yep but if |
Ok, if |
@mnapoli We will try to have a look at that issue today. |
👍 cool! |
Maybe I'm doing it wrong but I cannot get this to work with the Redis extension. I'm running PHP 7, here is the list of warnings I'm getting:
I'm suspecting this is because the default value of internal/extension classes cannot be read (see Ocramius/ProxyManager#162 for example or also ParameterResolver.php#L97).
I'm wondering if it's sane to set a default value of
null
if we know there is a default value ($parameter->isOptional()
) but we can't read it ($parameter->isDefaultValueAvailable()
)…Has anyone managed to make this work with the
Redis
class of the Redis extension? (if so, which PHP version?)The text was updated successfully, but these errors were encountered: