1 | <?php |
||
11 | class Buffer extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | /** |
||
16 | * Buffer app base url |
||
17 | * |
||
18 | * @const string |
||
19 | */ |
||
20 | const BASE_BUFFER_URL = 'https://bufferapp.com'; |
||
21 | |||
22 | /** |
||
23 | * Buffer API base url |
||
24 | * |
||
25 | * @const string |
||
26 | */ |
||
27 | const BASE_BUFFER_API_URL = 'https://api.bufferapp.com'; |
||
28 | |||
29 | /** |
||
30 | * Buffer API version |
||
31 | * |
||
32 | * @const string |
||
33 | */ |
||
34 | const BUFFER_API_VERSION = 1; |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 2 | public function getBaseAuthorizationUrl() |
|
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | 6 | public function getBaseAccessTokenUrl(array $params) |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 2 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
59 | |||
60 | /** |
||
61 | * Get the Buffer API URL |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 10 | public function getApiUrl() |
|
69 | |||
70 | /** |
||
71 | * @inheritdoc |
||
72 | */ |
||
73 | 2 | protected function getDefaultScopes() |
|
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | 4 | protected function checkResponse(ResponseInterface $response, $data) |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 2 | protected function createResourceOwner(array $response, AccessToken $token) |
|
99 | } |
||
100 |
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: