1 | <?php |
||
17 | class GenericHandler |
||
18 | { |
||
19 | /** |
||
20 | * The container instance. |
||
21 | * |
||
22 | * @var \Illuminate\Container\Container |
||
23 | */ |
||
24 | protected $app; |
||
25 | |||
26 | /** |
||
27 | * Create a new fort event listener instance. |
||
28 | * |
||
29 | * @param \Illuminate\Contracts\Container\Container $app |
||
30 | */ |
||
31 | public function __construct(Container $app) |
||
35 | |||
36 | /** |
||
37 | * Register the listeners for the subscriber. |
||
38 | * |
||
39 | * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher |
||
40 | */ |
||
41 | public function subscribe(Dispatcher $dispatcher) |
||
47 | |||
48 | /** |
||
49 | * Listen to the authentication lockout event. |
||
50 | * |
||
51 | * @param \Illuminate\Http\Request $request |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | public function lockout(Request $request): void |
||
63 | |||
64 | /** |
||
65 | * Listen to the authentication login event. |
||
66 | * |
||
67 | * @param \Illuminate\Auth\Events\Login $event |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | public function login(Login $event): void |
||
75 | |||
76 | /** |
||
77 | * Listen to the register success event. |
||
78 | * |
||
79 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
80 | * |
||
81 | * @return void |
||
82 | */ |
||
83 | public function registered(Authenticatable $user): void |
||
90 | } |
||
91 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.