Skip to content

[HttpFoundation] Fix Request::getUserInfo() return type #43879

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

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Nov 1, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

This method delegates to getUser() which itself can return null. It feels better than an empty string to me, and it's always been the case.
Spotted in symfony/psr-http-message-bridge#100

@carsonbot carsonbot changed the title Fix Request::getUserInfo() return type [HttpFoundation] Fix Request::getUserInfo() return type Nov 1, 2021
@nicolas-grekas
Copy link
Member

Thank you @chalasr.

@chalasr
Copy link
Member Author

chalasr commented Nov 2, 2021

@nicolas-grekas Don't forget to push 🙂

@nicolas-grekas nicolas-grekas merged commit 49312ab into symfony:4.4 Nov 2, 2021
@chalasr chalasr deleted the req-null-userinfo branch November 2, 2021 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants