1 | <?php |
||
11 | class RequestPasswordResetHandler |
||
12 | { |
||
13 | /** |
||
14 | * @var UserRepositoryCollection |
||
15 | */ |
||
16 | private $userRepositoryCollection; |
||
17 | |||
18 | /** |
||
19 | * @var EventDispatcher |
||
20 | */ |
||
21 | private $dispatcher; |
||
22 | |||
23 | /** |
||
24 | * PasswordResetRequestHandler constructor. |
||
25 | * |
||
26 | * @param UserRepositoryCollection $userRepositoryCollection |
||
27 | * @param EventDispatcherInterface $dispatcher |
||
28 | */ |
||
29 | public function __construct( |
||
36 | |||
37 | /** |
||
38 | * Creates a password reset token and sends an email to the user. |
||
39 | * |
||
40 | * @param RequestPasswordReset $command |
||
41 | * |
||
42 | * @return int |
||
43 | */ |
||
44 | public function handle(RequestPasswordReset $command) |
||
53 | |||
54 | /** |
||
55 | * Sends the password reset token to the user. |
||
56 | * |
||
57 | * @param UserPasswordReset $user |
||
58 | * |
||
59 | * @return int |
||
60 | */ |
||
61 | private function sendPasswordResetToken(UserPasswordReset $user) |
||
66 | } |
||
67 |
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..