-
Notifications
You must be signed in to change notification settings - Fork 158
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
Fix SF 7 compat #366
Fix SF 7 compat #366
Conversation
@@ -298,6 +298,10 @@ public function testAttachesTheTokenToTheResponseBodyOnCredentialsAuth() | |||
|
|||
public function testDoesNothingWhenThereIsNotAUser() | |||
{ | |||
if ((new \ReflectionClass(AuthenticationSuccessEvent::class))->getMethod('getUser')->hasReturnType()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is necessary because the WIP lexik/jwt-authentication-bundle
3.x branch adds return types on this event class, and its getUser()
method isn't documented as nullable in the first place. For now I just skip the test when that branch gets installed as it's the only failure when I force all dev dependencies to be pulled in (merging #338 as early as it was might've been premature given we don't look to be anywhere near a stable release yet).
lexik/LexikJWTAuthenticationBundle#1165 has just been merged 👍 |
a005f48
to
8222d03
Compare
Rebased, issues fixed, ready to go. |
👍 Nice one. Will be nice to see this merged! |
The Symfony 7 compat PR was merged and released too quickly, given that:
Mergedlexik/jwt-authentication-bundle
itself has a pending PR for Symfony 7 supportsymfony/security-guard
versions that do not exist to the Composer manifestThis PR is a draft PR until theIssues fixed and ready for review/merge.lexik/jwt-authentication-bundle
PR is merged, as that will block the Symfony 7 build from running until it's merged/released.