| 1 | <?php namespace JobApis\Jobs\Client\Providers; |
||
| 5 | class MonsterProvider extends AbstractProvider |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Returns the standardized job object |
||
| 9 | * |
||
| 10 | * @param array $payload |
||
| 11 | * |
||
| 12 | * @return \JobApis\Jobs\Client\Job |
||
| 13 | */ |
||
| 14 | 6 | public function createJobObject($payload) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Job response object default keys that should be set |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | 4 | public function getDefaultResponseFields() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Get format |
||
| 50 | * |
||
| 51 | * @return string Currently only 'json' and 'xml' supported |
||
| 52 | */ |
||
| 53 | 4 | public function getFormat() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Get listings path |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | 4 | public function getListingsPath() |
|
| 67 | } |
||
| 68 |
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: