1 | <?php |
||
12 | class FacebookUserProvider |
||
13 | { |
||
14 | /** |
||
15 | * @var Serializer |
||
16 | */ |
||
17 | protected $serializer; |
||
18 | |||
19 | /** |
||
20 | * @var RecursiveValidator |
||
21 | */ |
||
22 | protected $validator; |
||
23 | |||
24 | /** |
||
25 | * @param Serializer $serializer |
||
26 | * @param RecursiveValidator $validator |
||
27 | */ |
||
28 | public function __construct(Serializer $serializer, RecursiveValidator $validator) |
||
33 | |||
34 | /** |
||
35 | * @param string $accessToken |
||
36 | * |
||
37 | * @return FacebookResponse |
||
38 | */ |
||
39 | public function getUser($accessToken) |
||
68 | } |
||
69 |
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: