-
Notifications
You must be signed in to change notification settings - Fork 119
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
Use type hinting #16
Use type hinting #16
Conversation
Considering Guzzle has a minimum PHP version of 5.5, shouldn't this repo also have the same? And thus not support PHP7's typehinting. All considering that this is a wrapper around Guzzle. |
@djekl I don't think so. Because in composer.json, that declares only using PHP7. |
I agree with you there, and understand why you have done it. My question was aimed at why doesn't this package have a minimum version of 5.5 to support all developers using Guzzle, not just ones using PHP7 |
I don't know the reason because I'm not owner or maintainer on this repository. we(meaning engineers all over the world) have to use PHP7 or higher more positively, I think. |
It wasn't aimed directly at yourself, more towards @adamwathan. Again I understand and agree with you, but if the underlying code that this extends supports PHP5.5+ then I believe so should this. |
If this were standalone code, and didn't extend anything, then I would say yes to PHP7+ |
Thanks for your efforts @kzbandai! Type-hints are left out intentionally, I don't use them in my code and have pretty strong opinions against them (can listen to this podcast episode if you're interested in more). That aside, this library is also a bit of a fun exercise in doing things differently just to be contrarian, for example:
...and some other fun self-imposed limitations on code-style like:
Again, all just to have a bit of fun 😊 Life's too short to take everything so seriously. I'm not interested in supporting anything below PHP 7 personally; and in fact this library is already using a PHP 7 feature by having a method called |
@adamwathan Thank you for your response and reaction.
I impressed with this word. I don't regret creating this PR, and I am grateful to you. 😃 |
You shouldn't regret it at all! It's always hard to close PRs, feel really guilty every time. Don't hesitate to contribute more stuff in the future, even if I don't want to accept a change I still greatly appreciate the effort put in to contribute it. |
Hello, the purpose of this PR is that uses type hinting added on PHP7.
I thought that I want to add type hinting if
composer.json
restrict only using PHP7.If you like this PR, could you merge into master ? Thank you.