Skip to content

Conversation

HypeMC
Copy link
Member

@HypeMC HypeMC commented Dec 5, 2022

Since Symfony 6.0, the TokenInterface::getUser() method always returns an instance of UserInterface or null, and since the ExpressionVoter fetches the user from the token, it shouldn't be possible for it to be anon any more.

@javiereguiluz
Copy link
Member

@HypeMC thanks a lot for fixing this and thanks for the concise but perfect explanation too!

@javiereguiluz javiereguiluz merged commit 34f2209 into symfony:6.0 Dec 8, 2022
@HypeMC HypeMC deleted the remove-anon branch December 8, 2022 15:30
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.

3 participants