You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20990 [Security] Fix type in upgradePassword (Synxgz)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[Security] Fix type in `upgradePassword`
Fix the wrong type for the method `upgradePassword` according to `PasswordUpgraderInterface`.
It is wrong since the 6.0, the signature has changed from `PasswordAuthenticatedUserInterface|UserInterface` to `PasswordAuthenticatedUserInterface` in `PasswordUpgraderInterface`.
Commit: symfony/symfony@30e2c00#diff-b31195679b81d7a86cf868774ef3bf74a79e8e059250db399531b989b4919bdeL17
Prevents PHP Error :
```
Compile Error: Declaration of App\Services\Security\EmailUserProvider::upgradePassword(Symfony\Component\Security\Core\User\UserInterface $user, string $newHashedPassword): void must be compatible with Symfony\Component\Security\Core\User\PasswordUpgraderInterface::upgradePassword(Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
```
Commits
-------
6a90896 [Security] Fix type in `upgradePassword`
0 commit comments