Commit 6e01dc1
committed
minor symfony#20990 [Security] Fix type in
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`upgradePassword (Synxgz)1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
509 | | - | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
0 commit comments