1 | <?php |
||
10 | class Psn extends AbstractProvider |
||
11 | { |
||
12 | /** |
||
13 | * @var string Key used in the access token response to identify the resource owner. |
||
14 | */ |
||
15 | const ACCESS_TOKEN_RESOURCE_OWNER_ID = 'accountId'; |
||
16 | |||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | */ |
||
20 | 6 | public function getBaseAuthorizationUrl() |
|
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | 12 | public function getBaseAccessTokenUrl(array $params) |
|
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | 2 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | 4 | protected function getDefaultScopes() |
|
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | 10 | protected function checkResponse(ResponseInterface $response, $data) |
|
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | 2 | protected function createResourceOwner(array $response, AccessToken $token) |
|
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | 4 | protected function getAuthorizationHeaders($token = null) |
|
90 | } |
||
91 |
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: