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