1 | <?php |
||
12 | class Stripe extends AbstractProvider |
||
13 | { |
||
14 | use BearerAuthorizationTrait; |
||
15 | |||
16 | /** |
||
17 | * Get authorization url to begin OAuth flow |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | 3 | public function getBaseAuthorizationUrl() |
|
25 | |||
26 | /** |
||
27 | * Get access token url to retrieve token |
||
28 | * |
||
29 | * @param array $params |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | 15 | public function getBaseAccessTokenUrl(array $params) |
|
37 | |||
38 | /** |
||
39 | * Get provider url to fetch user details |
||
40 | * |
||
41 | * @param AccessToken $token |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 6 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
49 | |||
50 | /** |
||
51 | * Get deauthorization url to end OAuth flow |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | 3 | public function getBaseDeauthorizationUrl() |
|
59 | |||
60 | /** |
||
61 | * Get the default scopes used by this provider. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | protected function getDefaultScopes() |
||
69 | |||
70 | 12 | /** |
|
71 | 3 | * Check a provider response for errors. |
|
72 | 3 | * |
|
73 | 3 | * @param ResponseInterface $response |
|
74 | * @param array|string $data |
||
75 | 2 | * |
|
76 | * @throws IdentityProviderException |
||
77 | 9 | */ |
|
78 | protected function checkResponse(ResponseInterface $response, $data) |
||
88 | |||
89 | 3 | /** |
|
90 | * Generate a user object from a successful user details request. |
||
91 | * |
||
92 | 9 | * @param array $response |
|
93 | * @param AccessToken $token |
||
94 | 9 | * |
|
95 | * @return StripeResourceOwner |
||
96 | */ |
||
97 | 9 | protected function createResourceOwner(array $response, AccessToken $token) |
|
101 | 6 | ||
102 | protected function createAccessToken(array $response, AbstractGrant $grant) |
||
115 | |||
116 | /** |
||
117 | * @param string $stripeUserId stripe account ID |
||
118 | * |
||
119 | * @return mixed |
||
120 | */ |
||
121 | public function deauthorize($stripeUserId) |
||
138 | } |
||
139 |
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: