1 | <?php |
||
11 | class SocialAuthController extends BaseController |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $providers; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $driver; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $scopes; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $extras; |
||
32 | |||
33 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * Redirect the user to the social providers auth page. |
||
42 | * |
||
43 | * @param null|string $provider |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function login($provider = null) |
||
56 | |||
57 | /** |
||
58 | * Use the returned user to register (if needed) and login. |
||
59 | * |
||
60 | * @param null|string $provider |
||
61 | * |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function callback($provider = null) |
||
86 | |||
87 | /** |
||
88 | * Create a new user from a social user. |
||
89 | * |
||
90 | * @param $socialUser |
||
91 | * |
||
92 | * @return mixed |
||
93 | */ |
||
94 | private function register($socialUser) |
||
115 | |||
116 | /** |
||
117 | * Log the user out. |
||
118 | * |
||
119 | * @return mixed |
||
120 | */ |
||
121 | public function logout() |
||
128 | |||
129 | /** |
||
130 | * Find the provider's driver, scopes and extras based on a given provider name. |
||
131 | * |
||
132 | * @param $provider |
||
133 | * |
||
134 | * @throws \Exception |
||
135 | */ |
||
136 | private function getProviderDetails($provider) |
||
152 | } |
||
153 |
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..