1 | <?php |
||
6 | class Scorecard extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | 11 | public function __construct(Client $client) |
|
17 | |||
18 | /** |
||
19 | * Get one or multiple scorecards |
||
20 | * @param string scorecard id, leave null for list of boxes |
||
21 | * @param object Containing query arguments |
||
22 | * @return object Result of the request |
||
23 | */ |
||
24 | public function Get($scorecardId = null, $args = array("limit" => 50)) |
||
31 | |||
32 | /** |
||
33 | * Create new scorecard |
||
34 | * @param object Containing all the information of a scorecard |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($scorecard) |
||
41 | |||
42 | /** |
||
43 | * Delete a scorecard object by scorecard id |
||
44 | * @param string Id of the scorecard |
||
45 | * @return object Result of the request |
||
46 | */ |
||
47 | public function Delete($scorecardId) |
||
51 | |||
52 | /** |
||
53 | * Updates a maximum of 50 scorecard items at a time. |
||
54 | * @param array Containing scorecards with a maximum of 50 |
||
55 | * @throws \Exception When more that 50 content items are provided |
||
56 | * @return object Result of the request |
||
57 | */ |
||
58 | public function Bulk($scorecards) |
||
66 | } |
||
67 |
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: