Skip to content

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