-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c9b5ca0
to
7568d34
Compare
I just tried running this and it returned $r = new Request();
var_dump($r->getClientIp()); |
I think the docblock contains a type that must be, but not one that can be. |
No, docblock must specify type it returns |
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 |
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 people understand your PR and can be used as a start for the documentation. Additionally (see https://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)