1 | <?php namespace Stevenmaguire\OAuth2\Client\Provider; |
||
9 | class Eventbrite extends AbstractProvider |
||
10 | { |
||
11 | use BearerAuthorizationTrait; |
||
12 | |||
13 | /** |
||
14 | * Get authorization url to begin OAuth flow |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | 9 | public function getBaseAuthorizationUrl() |
|
22 | |||
23 | /** |
||
24 | * Get access token url to retrieve token |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | 12 | public function getBaseAccessTokenUrl(array $params) |
|
32 | |||
33 | /** |
||
34 | * Get provider url to fetch user details |
||
35 | * |
||
36 | * @param AccessToken $token |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | 3 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
44 | |||
45 | /** |
||
46 | * Get the default scopes used by this provider. |
||
47 | * |
||
48 | * This should not be a complete list of all scopes, but the minimum |
||
49 | * required for the provider user interface! |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | 6 | protected function getDefaultScopes() |
|
57 | |||
58 | /** |
||
59 | * Check a provider response for errors. |
||
60 | * |
||
61 | * @throws IdentityProviderException |
||
62 | * @param ResponseInterface $response |
||
63 | * @param string $data Parsed response data |
||
64 | * @return void |
||
65 | */ |
||
66 | 9 | protected function checkResponse(ResponseInterface $response, $data) |
|
76 | |||
77 | /** |
||
78 | * Generate a user object from a successful user details request. |
||
79 | * |
||
80 | * @param object $response |
||
81 | * @param AccessToken $token |
||
82 | * @return League\OAuth2\Client\Provider\ResourceOwnerInterface |
||
83 | */ |
||
84 | 3 | protected function createResourceOwner(array $response, AccessToken $token) |
|
88 | } |
||
89 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: