1 | <?php |
||
29 | class GenericHandler |
||
30 | { |
||
31 | /** |
||
32 | * The container instance. |
||
33 | * |
||
34 | * @var \Illuminate\Container\Container |
||
35 | */ |
||
36 | protected $app; |
||
37 | |||
38 | /** |
||
39 | * Create a new fort event listener instance. |
||
40 | * |
||
41 | * @param \Illuminate\Contracts\Container\Container $app |
||
42 | */ |
||
43 | public function __construct(Container $app) |
||
47 | |||
48 | /** |
||
49 | * Register the listeners for the subscriber. |
||
50 | * |
||
51 | * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher |
||
52 | */ |
||
53 | public function subscribe(Dispatcher $dispatcher) |
||
60 | |||
61 | /** |
||
62 | * Listen to the authentication lockout event. |
||
63 | * |
||
64 | * @param \Illuminate\Http\Request $request |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | public function authLockout(Request $request) |
||
76 | |||
77 | /** |
||
78 | * Listen to the register success event. |
||
79 | * |
||
80 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
81 | * |
||
82 | * @return void |
||
83 | */ |
||
84 | public function registerSuccess(Authenticatable $user) |
||
98 | |||
99 | /** |
||
100 | * Listen to the register social success event. |
||
101 | * |
||
102 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
103 | * |
||
104 | * @return void |
||
105 | */ |
||
106 | public function registerSocialSuccess(Authenticatable $user) |
||
120 | |||
121 | /** |
||
122 | * Listen to the email verification success. |
||
123 | * |
||
124 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
125 | * |
||
126 | * @return void |
||
127 | */ |
||
128 | public function emailVerificationSuccess(Authenticatable $user) |
||
134 | } |
||
135 |
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.