Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\User\Events\Handlers; |
||
20 | public function handle(UserHasRegistered $event) |
||
21 | { |
||
22 | $user = $event->user; |
||
23 | |||
24 | $activationCode = $this->auth->createActivation($user); |
||
25 | |||
26 | $data = [ |
||
27 | 'user' => $user, |
||
28 | 'activationcode' => $activationCode, |
||
29 | ]; |
||
30 | |||
31 | Mail::queue('user::emails.welcome', $data, |
||
32 | function (Message $m) use ($user) { |
||
33 | $m->to($user->email)->subject('Welcome.'); |
||
34 | } |
||
35 | ); |
||
36 | } |
||
37 | } |
||
38 |
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..