1 | <?php namespace JobApis\Jobs\Client\Providers; |
||
5 | class JobinventoryProvider extends AbstractProvider |
||
6 | { |
||
7 | /** |
||
8 | * Returns the standardized job object |
||
9 | * |
||
10 | * @param array $payload |
||
11 | * |
||
12 | * @return \JobApis\Jobs\Client\Job |
||
13 | */ |
||
14 | 8 | public function createJobObject($payload) |
|
37 | |||
38 | /** |
||
39 | * Job response object default keys that should be set |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 4 | public function getDefaultResponseFields() |
|
52 | |||
53 | /** |
||
54 | * Get format |
||
55 | * |
||
56 | * @return string Currently only 'json' and 'xml' supported |
||
57 | */ |
||
58 | 4 | public function getFormat() |
|
62 | |||
63 | /** |
||
64 | * Get listings path |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | 4 | public function getListingsPath() |
|
72 | } |
||
73 |
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: