1 | <?php |
||
10 | class Job |
||
11 | { |
||
12 | /** |
||
13 | * @var Client |
||
14 | */ |
||
15 | private $client; |
||
16 | |||
17 | /** |
||
18 | * @param Client $client |
||
19 | */ |
||
20 | public function __construct(Client $client) |
||
24 | |||
25 | /** |
||
26 | * @param string $project |
||
27 | * @param array $params |
||
28 | * @return PromiseInterface |
||
29 | */ |
||
30 | public function list(string $project, array $params = []): PromiseInterface |
||
36 | |||
37 | /** |
||
38 | * @param string $project |
||
39 | * @param array $params |
||
40 | * @return PromiseInterface |
||
41 | */ |
||
42 | public function export(string $project, array $params = []): PromiseInterface |
||
48 | |||
49 | /** |
||
50 | * @return PromiseInterface |
||
51 | */ |
||
52 | public function import(): PromiseInterface |
||
56 | } |
||
57 |
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: