Skip to content
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: typo in PasswordTokenManager #131

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

mano-lis
Copy link
Contributor

@mano-lis mano-lis commented Dec 4, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes

@mano-lis
Copy link
Contributor Author

mano-lis commented Dec 4, 2023

I think there's a typo here. I was using v1.4 but after upgrading to symfony 6.4, the bundles comes with v1.5 and my test explodes. Reason seems to be the deletion of the nullsafe check part l68 in v1.5

$passwordToken->setExpiresAt($expiresAt ?: new \DateTime($this->defaultExpiresIn));

@vincentchalamon
Copy link
Contributor

Good catch! Can you add a non-regression test please?

Copy link
Contributor

@vincentchalamon vincentchalamon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vincentchalamon vincentchalamon merged commit 45a6979 into coopTilleuls:main Dec 5, 2023
3 checks passed
@vincentchalamon
Copy link
Contributor

Thanks @mano-lis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants