| 1 | <?php namespace Arcanedev\LaravelAuth\Listeners\Users; |
||
| 12 | class GenerateConfirmationCode |
||
| 13 | { |
||
| 14 | /* ----------------------------------------------------------------- |
||
| 15 | | Main Methods |
||
| 16 | | ----------------------------------------------------------------- |
||
| 17 | */ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Handle the event. |
||
| 21 | * |
||
| 22 | * @param \Arcanedev\LaravelAuth\Events\Users\CreatingUser $event |
||
| 23 | */ |
||
| 24 | 36 | public function handle(CreatingUser $event) |
|
| 32 | } |
||
| 33 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: