| 1 | <?php namespace JobApis\Jobs\Client\Providers; |
||
| 5 | class CraigslistProvider 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) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Job response object default keys that should be set |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 4 | public function getDefaultResponseFields() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Get format |
||
| 47 | * |
||
| 48 | * @return string Currently only 'json' and 'xml' supported |
||
| 49 | */ |
||
| 50 | 4 | public function getFormat() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Get listings path |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 4 | public function getListingsPath() |
|
| 64 | } |
||
| 65 |
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: