1 | <?php |
||
18 | class Psn extends AbstractProvider |
||
19 | { |
||
20 | /** |
||
21 | * @var string Key used in the access token response to identify the resource owner. |
||
22 | */ |
||
23 | const ACCESS_TOKEN_RESOURCE_OWNER_ID = 'accountId'; |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | 6 | public function getBaseAuthorizationUrl() |
|
29 | { |
||
30 | 6 | return 'https://auth.api.sonyentertainmentnetwork.com/2.0/oauth/authorize'; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | 12 | public function getBaseAccessTokenUrl(array $params) |
|
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | 2 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | 4 | protected function getDefaultScopes() |
|
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | 10 | protected function checkResponse(ResponseInterface $response, $data) |
|
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | 2 | protected function createResourceOwner(array $response, AccessToken $token) |
|
86 | |||
87 | /** |
||
88 | * {@inheritDoc} |
||
89 | */ |
||
90 | 4 | protected function getAuthorizationHeaders($token = null) |
|
97 | } |
||
98 |
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: