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

Add typecasting for Redis connect function. #48

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Satariall
Copy link

Some libraries, frameworks of configs might provide a strings to port and timeout params. Redis extension on PHP 7.4 throw an TypeError on that situation. For preventing this add typecasting (int)$this->options['port'] and (float)$this->options['timeout'] to the connect and pconnect methods.

Some libraries, frameworks of configs might provide a strings to port and timeout params. Redis extension on PHP 7.4 throw an TypeError on that situation. For preventing this add typecasting `(int)$this->options['port']` and `(float)$this->options['timeout']` to the `connect` and `pconnect` methods.
L3tum added a commit to L3tum/prometheus_client_php that referenced this pull request Sep 20, 2020
Marsel Markhabulin and others added 3 commits January 12, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant