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
PasswordEncoderInterface has, in both methods, string for the type-hinting (in phpDoc) of $salt parameter.
This is wrong and should be string|null: as a matter of fact, newer encoders don't require a salt.
I found this with phpstan:
Parameter 2 $salt of method Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface::encodePassword() expects string, null given.
The text was updated successfully, but these errors were encountered:
This PR was squashed before being merged into the 3.4 branch (closes#31813).
Discussion
----------
fix type hint for salt in PasswordEncoderInterface
See issue #31812
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #31812
| License | MIT
| Doc PR | none
Pretty self-explanatory
Commits
-------
0e741f9 fix type hint for salt in PasswordEncoderInterface
Symfony version(s) affected: >=3.4
PasswordEncoderInterface has, in both methods,
string
for the type-hinting (in phpDoc) of$salt
parameter.This is wrong and should be
string|null
: as a matter of fact, newer encoders don't require a salt.I found this with phpstan:
The text was updated successfully, but these errors were encountered: