1 | <?php |
||
9 | class AppleAccessToken extends AccessToken |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $idToken; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $email; |
||
20 | |||
21 | /** |
||
22 | * @var boolean |
||
23 | */ |
||
24 | protected $isPrivateEmail; |
||
25 | |||
26 | /** |
||
27 | * Constructs an access token. |
||
28 | * |
||
29 | * @param array $options An array of options returned by the service provider |
||
30 | * in the access token request. The `access_token` option is required. |
||
31 | * @throws InvalidArgumentException if `access_token` is not provided in `$options`. |
||
32 | */ |
||
33 | 1 | public function __construct(array $options = []) |
|
62 | |||
63 | /** |
||
64 | * @return resource Apple Key |
||
65 | */ |
||
66 | 1 | protected function getAppleKey() |
|
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getIdToken() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getEmail() |
||
86 | |||
87 | /** |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function isPrivateEmail() |
||
94 | } |
||
95 |
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: