| 1 | <?php |
||
| 5 | class Bill extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The endpoint that will hit the API. |
||
| 9 | * |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | 18 | public function endpoint() |
|
| 16 | |||
| 17 | /** |
||
| 18 | * Make a POST request to bills/{id}/approve. |
||
| 19 | * |
||
| 20 | * @param int $id The resource's id. |
||
| 21 | * |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | 2 | public function approve($id) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Make a POST request to bills/{id}/charge. |
||
| 31 | * |
||
| 32 | * @param int $id The resource's id. |
||
| 33 | * @param array $form_params. |
||
|
|
|||
| 34 | * |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function charge($id, array $form_params = []) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Make a POST request to bills/{id}/invoice. |
||
| 44 | * |
||
| 45 | * @param int $id The resource's id. |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function invoice($id) |
||
| 53 | } |
||
| 54 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.