Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function subscribe(Dispatcher $events) |
||
16 | { |
||
17 | $events->listen(FrontUserRegistered::class, function (FrontUserRegistered $event) { |
||
18 | Mail::send(new Welcome($event->user)); |
||
|
|||
19 | }); |
||
20 | |||
21 | $events->listen(FrontUserCreatedThroughBack::class, function (FrontUserCreatedThroughBack $event) { |
||
22 | Password::broker('front')->sendResetLink(['email' => $event->user->email], function (Message $message) { |
||
23 | $message->subject('Welkom bij '.config('app.url')); |
||
24 | }); |
||
25 | }); |
||
26 | |||
27 | $events->listen(BackUserCreated::class, function (BackUserCreated $event) { |
||
28 | Password::broker('back')->sendResetLink(['email' => $event->user->email], function (Message $message) { |
||
29 | $message->subject('Welkom bij '.config('app.url')); |
||
30 | }); |
||
31 | }); |
||
32 | } |
||
33 | } |
||
34 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: