1 | <?php |
||
12 | class SocialAuthController extends BaseController |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $providers; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $driver; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $scopes; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $extras; |
||
33 | |||
34 | public function __construct() |
||
38 | |||
39 | /** |
||
40 | * Redirect the user to the social providers auth page. |
||
41 | * |
||
42 | * @param null|string $provider |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function login($provider = null) |
||
55 | |||
56 | /** |
||
57 | * Use the returned user to register (if needed) and login. |
||
58 | * |
||
59 | * @param null|string $provider |
||
60 | * |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function callback($provider = null) |
||
90 | |||
91 | /** |
||
92 | * Create a new user from a social user. |
||
93 | * |
||
94 | * @param $socialUser |
||
95 | * |
||
96 | * @return mixed |
||
97 | */ |
||
98 | private function register($socialUser) |
||
119 | |||
120 | /** |
||
121 | * Log the user out. |
||
122 | * |
||
123 | * @return mixed |
||
124 | */ |
||
125 | public function logout() |
||
132 | |||
133 | /** |
||
134 | * Find the provider's driver, scopes and extras based on a given provider name. |
||
135 | * |
||
136 | * @param $provider |
||
137 | * |
||
138 | * @throws \Exception |
||
139 | */ |
||
140 | private function getProviderDetails($provider) |
||
156 | } |
||
157 |
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..