1 | <?php |
||
16 | class Pins extends Endpoint { |
||
17 | |||
18 | /** |
||
19 | * Get a pin object |
||
20 | * |
||
21 | * @access public |
||
22 | * @param string $pin_id |
||
23 | * @param array $data |
||
24 | * @throws Exceptions/PinterestExceptions |
||
25 | * @return Pin |
||
26 | */ |
||
27 | 3 | public function get($pin_id, array $data = []) |
|
32 | |||
33 | /** |
||
34 | * Get all pins from the given board |
||
35 | * |
||
36 | * @access public |
||
37 | * @param string $board_id |
||
38 | * @param array $data |
||
39 | * @throws Exceptions/PinterestExceptions |
||
40 | * @return Collection |
||
41 | */ |
||
42 | 1 | public function fromBoard($board_id, array $data = []) |
|
47 | |||
48 | /** |
||
49 | * Create a pin |
||
50 | * |
||
51 | * @access public |
||
52 | * @param array $data |
||
53 | * @throws Exceptions/PinterestExceptions |
||
54 | * @return Pin |
||
55 | */ |
||
56 | 1 | public function create(array $data) |
|
69 | |||
70 | /** |
||
71 | * Update a pin |
||
72 | * |
||
73 | * @access public |
||
74 | * @param string $pin_id |
||
75 | * @param array $data |
||
76 | * @throws Exceptions/PinterestExceptions |
||
77 | * @return Pin |
||
78 | */ |
||
79 | 1 | public function update($pin_id, array $data) |
|
84 | |||
85 | /** |
||
86 | * Delete a pin |
||
87 | * |
||
88 | * @access public |
||
89 | * @param string $pin_id |
||
90 | * @throws Exceptions/PinterestExceptions |
||
91 | * @return boolean |
||
92 | */ |
||
93 | 1 | public function delete($pin_id) |
|
98 | } |
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: