1 | <?php |
||
10 | class Yelp extends AbstractProvider |
||
11 | { |
||
12 | use ClientCredentialsOnlyTrait; |
||
13 | |||
14 | /** |
||
15 | * Get access token url to retrieve token |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | 6 | public function getBaseAccessTokenUrl(array $params) |
|
23 | |||
24 | /** |
||
25 | * Check a provider response for errors. |
||
26 | * |
||
27 | * @throws IdentityProviderException |
||
28 | * @param ResponseInterface $response |
||
29 | * @param string $data Parsed response data |
||
30 | * @return void |
||
31 | */ |
||
32 | 4 | protected function checkResponse(ResponseInterface $response, $data) |
|
43 | } |
||
44 |
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: