| 1 | <?php |
||
| 7 | class Milestone extends TeamworkObject |
||
| 8 | { |
||
| 9 | use RestfulTrait; |
||
| 10 | |||
| 11 | protected $wrapper = 'milestone'; |
||
| 12 | protected $endpoint = 'milestones'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * GET /milestones.json |
||
| 16 | * |
||
| 17 | * @param null $args |
||
| 18 | * |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public function all($args = null) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * GET /milestones/{milestone_id}.json |
||
| 30 | * |
||
| 31 | * @param null $args |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function find($args = null) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * PUT /milestones/{id}/complete.json |
||
| 44 | * |
||
| 45 | * @param array $data |
||
| 46 | * |
||
| 47 | * @return |
||
| 48 | */ |
||
| 49 | public function complete($data = []) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * PUT /milestones/{id}/uncomplete.json |
||
| 56 | * |
||
| 57 | * @param array $data |
||
| 58 | * |
||
| 59 | * @return |
||
| 60 | */ |
||
| 61 | public function uncomplete($data = []) |
||
| 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: