1 | <?php |
||
12 | class PasswordResetRequestHandler |
||
13 | { |
||
14 | /** |
||
15 | * @var UserRepositoryCollection |
||
16 | */ |
||
17 | private $userRepositoryCollection; |
||
18 | |||
19 | /** |
||
20 | * @var Swift_Mailer |
||
21 | */ |
||
22 | private $listener; |
||
23 | |||
24 | /** |
||
25 | * @var EventDispatcher |
||
26 | */ |
||
27 | private $dispatcher; |
||
28 | |||
29 | /** |
||
30 | * PasswordResetRequestHandler constructor. |
||
31 | * |
||
32 | * @param UserRepositoryCollection $userRepositoryCollection |
||
33 | * @param EventDispatcherInterface $dispatcher |
||
34 | * @param OnPasswordResetTokenCreated $listener |
||
35 | */ |
||
36 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * Creates a password reset token and sends an email to the user. |
||
48 | * |
||
49 | * @param RequestPasswordReset $command |
||
50 | * |
||
51 | * @return int |
||
52 | */ |
||
53 | public function handle(RequestPasswordReset $command) |
||
62 | |||
63 | /** |
||
64 | * Sends the password reset token to the user. |
||
65 | * |
||
66 | * @param UserPasswordReset $user |
||
67 | * |
||
68 | * @return int |
||
69 | */ |
||
70 | private function sendPasswordResetToken(UserPasswordReset $user) |
||
76 | } |
||
77 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..