Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpFoundation] Revert getClientIp @return docblock#32682
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedJul 25, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I just tried running this and it returned $r =newRequest();var_dump($r->getClientIp()); |
ossinkine commentedJul 25, 2019
I think the docblock contains a type that must be, but not one that can be. |
ostrolucky commentedJul 26, 2019
No, docblock must specify type it returns |
ossinkine commentedJul 26, 2019
But now it is not so, we must be consistent. If we want the docblock to contain what the method returns, we need to add |
fabpot commentedAug 4, 2019
Thank you@ossinkine. |
…nkine)This PR was merged into the 3.4 branch.Discussion----------[HttpFoundation] Revert getClientIp@return docblock| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| License | MIT<!--Replace this notice by a short README for your feature/bugfix. This will help peopleunderstand your PR and can be used as a start for the documentation.Additionally (seehttps://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch.-->This PR reverts#22418, see the comment#22418 (comment)Commits-------7568d34 [HttpFoundation] Revert getClientIp@return docblock
This PR reverts#22418, see the comment#22418 (comment)