Skip to content

Commit

Permalink
Add generics for PasswordUpgraderInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 22, 2022
1 parent 72cf8cf commit dac2474
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension.neon
Expand Up @@ -14,6 +14,7 @@ parameters:
featureToggles:
skipCheckGenericClasses:
- Symfony\Component\OptionsResolver\Options
- Symfony\Component\Security\Core\User\PasswordUpgraderInterface
stubFiles:
- stubs/Psr/Cache/CacheItemInterface.stub
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
Expand Down Expand Up @@ -50,6 +51,8 @@ parameters:
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
- stubs/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.stub
- stubs/Symfony/Component/Security/Core/User/PasswordUpgraderInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
Expand Down
@@ -0,0 +1,7 @@
<?php

namespace Symfony\Component\Security\Core\User;

interface PasswordAuthenticatedUserInterface
{
}
@@ -0,0 +1,14 @@
<?php

namespace Symfony\Component\Security\Core\User;

/**
* @template TUser of PasswordAuthenticatedUserInterface
*/
interface PasswordUpgraderInterface
{
/**
* @param TUser $user
*/
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void;
}

0 comments on commit dac2474

Please sign in to comment.