-
Notifications
You must be signed in to change notification settings - Fork 13
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
Guzzle proxy support #29
base: master
Are you sure you want to change the base?
Conversation
This looks awesome! Thanks for this! One question though, why are docblocks being removed in this PR? |
mmm, in my opinion they should only be used when adding information... Since PHP 7.1 proper return types are supported, so no PHPDoc is required anymore... Also see this thread: https://twitter.com/akrabat/status/878345065696985088 |
Interesting. I tend to agree with the provided point. |
First I went with array, since it provides more options for configuration. But eventually, to be able to use a static IP, a plain HTTP proxy suffices => so I went with the string. Then probably only the string suffices.... But hey, why limit it? The current approach allows for best of both worlds and it is up to the user what info is handed over to Guzzle... |
So can we typehint on an array (also allowing a single entry) and validate the strings in that array? |
Sure, but why restrict the options? We can just follow the Guzzle interface for it right? string + array |
shameless bump on this? 😄 |
@dennisdegreef another bump on this? |
As suggested in #27