1 | <?php |
||
13 | class IdentityService extends AbstractPaypalService |
||
14 | { |
||
15 | /** |
||
16 | * getAccessTokenFromAuthToken |
||
17 | * |
||
18 | * @param $authToken |
||
19 | * @return OpenIdTokeninfo|null |
||
20 | */ |
||
21 | public function getAccessTokenFromAuthToken($authToken) : ?OpenIdTokeninfo |
||
36 | |||
37 | /** |
||
38 | * refreshToken |
||
39 | * |
||
40 | * @param string $refreshToken |
||
41 | * @return OpenIdTokeninfo|null |
||
42 | */ |
||
43 | public function refreshToken(string $refreshToken) : ?OpenIdTokeninfo |
||
54 | |||
55 | /** |
||
56 | * @param OpenIdTokeninfo $tokenInfo |
||
57 | * @return OpenIdUserinfo|null |
||
58 | */ |
||
59 | public function getUserInfo(OpenIdTokeninfo $tokenInfo) : ?OpenIdUserinfo |
||
70 | |||
71 | /** |
||
72 | * @param string $refreshToken |
||
73 | * @return OpenIdUserinfo|null |
||
74 | */ |
||
75 | public function getUserInfoFromRefreshToken(string $refreshToken) : ?OpenIdUserinfo |
||
86 | } |
||
87 |
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: