File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ parameters:
58
58
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
59
59
- stubs/Symfony/Component/Security/Core/Authorization/Voter/Voter.stub
60
60
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
61
- - stubs/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.stub
62
- - stubs/Symfony/Component/Security/Core/User/PasswordUpgraderInterface.stub
63
61
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
64
62
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
65
63
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
@@ -298,6 +296,10 @@ services:
298
296
class : PHPStan\Symfony\InputBagStubFilesExtension
299
297
tags :
300
298
- phpstan.stubFilesExtension
299
+ -
300
+ class : PHPStan\Symfony\PasswordAuthenticatedUserStubFilesExtension
301
+ tags :
302
+ - phpstan.stubFilesExtension
301
303
302
304
# FormInterface::getErrors() return type
303
305
-
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace PHPStan \Symfony ;
4
+
5
+ use PHPStan \PhpDoc \StubFilesExtension ;
6
+ use function class_exists ;
7
+
8
+ class PasswordAuthenticatedUserStubFilesExtension implements StubFilesExtension
9
+ {
10
+
11
+ public function getFiles (): array
12
+ {
13
+ if (!class_exists ('Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface ' )) {
14
+ return [];
15
+ }
16
+
17
+ return [
18
+ __DIR__ . '/../../stubs/Symfony/Component/Security/Core/User/PasswordAuthenticatedUserInterface.stub ' ,
19
+ __DIR__ . '/../../stubs/Symfony/Component/Security/Core/User/PasswordUpgraderInterface.stub ' ,
20
+ ];
21
+ }
22
+
23
+ }
You can’t perform that action at this time.
0 commit comments