-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PasswordHasher] Add union types #41640
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
[PasswordHasher] Add union types #41640
Conversation
Hey! To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done? Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review. Cheers! Carsonbot |
01da7b0
to
fe3fdfd
Compare
src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Hasher/UserPasswordHasher.php
Outdated
Show resolved
Hide resolved
fe3fdfd
to
5005cdf
Compare
9df0ac9
to
2af3710
Compare
b47497f
to
e0a3ad3
Compare
f99c3be
to
501b827
Compare
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.
With some nitpicking.
@chalasr shouldn't we backport some changes to 5.3?
src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactoryInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php
Outdated
Show resolved
Hide resolved
501b827
to
b57bce2
Compare
…allowed type (chalasr) This PR was merged into the 5.3 branch. Discussion ---------- [PasswordHasher] Fix missing PasswordHasherAwareInterface allowed type | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Also backports test changes from #41640 Commits ------- 8d3bea5 [PasswordHasher] Fix missing PasswordHasherAwareInterface allowed type in signatures
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.
Rebase needed after #41678
src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactoryInterface.php
Outdated
Show resolved
Hide resolved
…e from UserPasswordHasherInterface API (chalasr) This PR was merged into the 5.3 branch. Discussion ---------- [PasswordHasher] Remove PasswordHasherAwareInterface type from UserPasswordHasherInterface API | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | no (not yet released) | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - As spotted by `@stof` in #41640 (comment), the methods of this interface should not handle user classes/instances that are not implementing `PasswordAuthenticatedUserInterface`. This reverts that part from #41678 (not released yet). Commits ------- 596ba78 [PasswordHasher] Remove PasswordHasherAwareInterface from UserPasswordHasherInterface API
b57bce2
to
8628479
Compare
Thank you @ValentineBoineau. |
Extracted from #41424