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
allow assoc array and generator for connection creation #689
allow assoc array and generator for connection creation #689
Conversation
Then why travic-ci works well? What is the error? |
As you can see here, php 7.3.5 works just fine:
|
The error is that the contrib doc says to use What is the actual reason this is closed without comment? |
Yes, if you have
I see no reason to merge this pull request. Running tests works fine on Travis CI and on my workstation, and there is no information as to why this pull request is necessary. |
The contrib file should be fixed to say vendor/bin/phpunit instead of just phpunit. I think it's weird to assume that someone has this stone age version of phpunit in PATH. This PR removes a pointless limitation in create_connection. You are forcing users to give a plain list of hosts. I can't use a generator or indexed array. I didn't think I'd have to waste time by creating an enhancement issue if I could just improve the code. |
Great. That explanation would have been very helpful in your original comment as your one-line description did not provide that information.
Please add this change to your pull request, thanks.
The reason for this is that we support older versions of PHP. Version 3.0.0 of this library will support only newer versions, and we can update the required phpunit version. Finally, add tests to your pull request demonstrating that your change works as intended, and is backwards-compatible, and I will happily merge it. |
I'll try to remember that the commit message is not enough explanation |
I can't merge this PR without tests demonstrating that it both is backwards compatible and supports your requirements. |
5d4a665
to
70482c6
Compare
Thank you |
…on_foreach allow assoc array and generator for connection creation
I tried to run unittests but it's impossible on php 7.3